Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 107.4 kB / 17.16 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 47.94 kB / 280 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1101, allocations: 46.63 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.0046/0.1147, allocations: 3.141 MB / 329.7 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.1162, allocations: 0.7798 MB / 330.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002728/0.1165, allocations: 4 kB / 330.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001873/0.1167, allocations: 39.69 kB / 330.6 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.1169, allocations: 91.23 kB / 330.6 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003736/0.1173, allocations: 95.91 kB / 330.7 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000336/0.1176, allocations: 402.1 kB / 331.1 MB, free: 336 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.1179, allocations: 120.2 kB / 331.3 MB, free: 212 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.118, allocations: 151.4 kB / 331.4 MB, free: 60 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.1182, allocations: 155.4 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.1183, allocations: 27.94 kB / 331.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.719e-05/0.1183, allocations: 24 kB / 331.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.012e-05/0.1184, allocations: 67.75 kB / 331.7 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.1186, allocations: 179.1 kB / 331.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003114/0.1189, allocations: 402.7 kB / 332.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1189, allocations: 0 / 332.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1189, allocations: 0 / 332.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.1189, allocations: 0 / 332.2 MB, free: 15.22 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00103/0.12, allocations: 0.651 MB / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.12, allocations: 8.031 kB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.318e-05/0.1201, allocations: 40.5 kB / 332.9 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.1204, allocations: 289.1 kB / 333.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.532e-05/0.1205, allocations: 84.56 kB / 333.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.525e-05/0.1206, allocations: 28.38 kB / 333.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005768/0.1212, allocations: 334.9 kB / 333.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.1212, allocations: 0 / 333.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.548e-05/0.1212, allocations: 20 kB / 333.7 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.1213, allocations: 8 kB / 333.7 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003905/0.1217, allocations: 222.5 kB / 333.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.1235, allocations: 1.379 MB / 335.3 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003246/0.1239, allocations: 166.5 kB / 335.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.124, allocations: 92.77 kB / 335.5 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.1241, allocations: 7.984 kB / 335.5 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003472/0.1244, allocations: 153.9 kB / 335.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.142e-06/0.1244, allocations: 0 / 335.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001156/0.1256, allocations: 399.1 kB / 336.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.759e-05/0.1257, allocations: 114.8 kB / 336.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002559/0.126, allocations: 258.6 kB / 336.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.126, allocations: 29.7 kB / 336.5 MB, free: 10.66 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.1261, allocations: 203.9 kB / 336.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.866e-05/0.1262, allocations: 74.98 kB / 336.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.1263, allocations: 62.03 kB / 336.8 MB, free: 10.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1264, allocations: 330.8 kB / 337.1 MB, free: 9.988 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.1266, allocations: 80.61 kB / 337.2 MB, free: 9.91 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.1268, allocations: 177.5 kB / 337.4 MB, free: 9.695 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.1272, allocations: 243.5 kB / 337.6 MB, free: 9.422 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1272, allocations: 0 / 337.6 MB, free: 9.422 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006953/0.1279, allocations: 347.6 kB / 338 MB, free: 9.074 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.1279, allocations: 4 kB / 338 MB, free: 9.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.1279, allocations: 7.984 kB / 338 MB, free: 9.062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002981/0.1282, allocations: 52.98 kB / 338 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.1285, allocations: 67.84 kB / 338.1 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.1299, allocations: 1.404 MB / 339.5 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.1302, allocations: 43.67 kB / 339.5 MB, free: 7.359 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.1302, allocations: 12 kB / 339.5 MB, free: 7.348 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001661/0.1304, allocations: 152.8 kB / 339.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.346e-05/0.1304, allocations: 31.81 kB / 339.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.454e-05/0.1305, allocations: 30.17 kB / 339.8 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1305, allocations: 0 / 339.8 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1305, allocations: 11.88 kB / 339.8 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1305, allocations: 7.922 kB / 339.8 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000373/0.1309, allocations: 333.4 kB / 340.1 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1309, allocations: 4 kB / 340.1 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.1311, allocations: 43.92 kB / 340.1 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001798/0.1313, allocations: 48.81 kB / 340.2 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/0.1313, allocations: 11.98 kB / 340.2 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.1326, allocations: 1.319 MB / 341.5 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1326, allocations: 0 / 341.5 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007199/0.1333, allocations: 342.3 kB / 341.9 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.1335, allocations: 124.7 kB / 342 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.168e-05/0.1335, allocations: 4 kB / 342 MB, free: 4.676 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.1337, allocations: 19.98 kB / 342 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.749e-05/0.1338, allocations: 27.95 kB / 342 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.1338, allocations: 4 kB / 342 MB, free: 4.625 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001779/0.134, allocations: 190 kB / 342.2 MB, free: 4.438 MB / 286.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.134, allocations: 3.938 kB / 342.2 MB, free: 4.434 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004009/0.1344, allocations: 87.84 kB / 342.3 MB, free: 4.348 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001685/0.1346, allocations: 99.44 kB / 342.4 MB, free: 4.242 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007063/0.1353, allocations: 322.8 kB / 342.7 MB, free: 3.914 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.1353, allocations: 4.25 kB / 342.7 MB, free: 3.91 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.1357, allocations: 190.6 kB / 342.9 MB, free: 3.711 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.136, allocations: 32.55 kB / 342.9 MB, free: 3.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.1379, allocations: 0.8078 MB / 343.8 MB, free: 2.848 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.1384, allocations: 0.7677 MB / 344.5 MB, free: 2.055 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.1385, allocations: 26.28 kB / 344.5 MB, free: 2.027 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.85e-05/0.1386, allocations: 27.38 kB / 344.6 MB, free: 2 MB / 286.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1386, allocations: 0 / 344.6 MB, free: 2 MB / 286.1 MB Notification: Performance of Templates: time 0.007528/0.1461, allocations: 2.808 MB / 347.4 MB, free: 15.2 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches