Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 95.34 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00205/0.002051, allocations: 202 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.592/1.592, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.0002476, allocations: 8 kB / 307.7 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1069, allocations: 51.54 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003561/0.1106, allocations: 2.551 MB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.1119, allocations: 0.7479 MB / 362.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.1121, allocations: 8 kB / 362.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.1122, allocations: 35.69 kB / 362.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.1124, allocations: 75.39 kB / 362.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003412/0.1128, allocations: 91.84 kB / 362.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003706/0.1131, allocations: 350.4 kB / 363.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.1134, allocations: 99.92 kB / 363.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.1135, allocations: 123.5 kB / 363.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.1137, allocations: 139.3 kB / 363.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.1138, allocations: 16 kB / 363.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.124e-05/0.1138, allocations: 16 kB / 363.5 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.836e-05/0.1139, allocations: 51.81 kB / 363.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.1141, allocations: 176.9 kB / 363.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000338/0.1144, allocations: 335 kB / 364.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1144, allocations: 0 / 364.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1144, allocations: 0 / 364.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.1144, allocations: 0 / 364.1 MB, free: 8.461 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001078/0.1155, allocations: 0.5628 MB / 364.6 MB, free: 7.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.1156, allocations: 11.97 kB / 364.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.015e-05/0.1157, allocations: 40.56 kB / 364.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.1161, allocations: 268.3 kB / 364.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.1162, allocations: 72.62 kB / 365 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.895e-05/0.1162, allocations: 32.38 kB / 365 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006163/0.1169, allocations: 301.8 kB / 365.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1169, allocations: 3.938 kB / 365.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.1169, allocations: 12 kB / 365.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1169, allocations: 4 kB / 365.4 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003436/0.1173, allocations: 190.2 kB / 365.5 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.1189, allocations: 1.143 MB / 366.7 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.1192, allocations: 158.6 kB / 366.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1194, allocations: 79.23 kB / 366.9 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.1194, allocations: 7.938 kB / 366.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.1197, allocations: 149.8 kB / 367.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.1197, allocations: 4 kB / 367.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001073/0.1208, allocations: 403.1 kB / 367.5 MB, free: 4.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.1209, allocations: 106.8 kB / 367.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/0.1211, allocations: 221 kB / 367.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.1212, allocations: 37.69 kB / 367.8 MB, free: 4.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1213, allocations: 172.2 kB / 368 MB, free: 4.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/0.1213, allocations: 75 kB / 368.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.1214, allocations: 29.7 kB / 368.1 MB, free: 4.117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1215, allocations: 338.8 kB / 368.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.1217, allocations: 71.97 kB / 368.5 MB, free: 3.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.1218, allocations: 132.8 kB / 368.6 MB, free: 3.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.1221, allocations: 194 kB / 368.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1221, allocations: 0 / 368.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004329/0.1226, allocations: 272.5 kB / 369.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.1226, allocations: 4 kB / 369.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.1226, allocations: 7.938 kB / 369.1 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002825/0.1229, allocations: 61 kB / 369.2 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.1231, allocations: 51.91 kB / 369.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.1244, allocations: 1.412 MB / 370.6 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.1246, allocations: 43.7 kB / 370.7 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.1247, allocations: 12 kB / 370.7 MB, free: 1.336 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001602/0.1248, allocations: 154.5 kB / 370.8 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.721e-05/0.1249, allocations: 27.66 kB / 370.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.828e-05/0.1249, allocations: 26.17 kB / 370.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.1249, allocations: 0 / 370.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.1249, allocations: 4 kB / 370.9 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1249, allocations: 4 kB / 370.9 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.1253, allocations: 317.4 kB / 371.2 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1253, allocations: 0 / 371.2 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.1254, allocations: 39.84 kB / 371.2 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001817/0.1256, allocations: 56.81 kB / 371.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.1257, allocations: 4 kB / 371.3 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.221/0.3466, allocations: 1.318 MB / 372.6 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3467, allocations: 1.031 kB / 372.6 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009024/0.3476, allocations: 328.9 kB / 372.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.3478, allocations: 113.4 kB / 373 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.093e-05/0.3478, allocations: 6.391 kB / 373 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.348, allocations: 22.08 kB / 373.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.3481, allocations: 32.39 kB / 373.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3481, allocations: 9.125 kB / 373.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001734/0.3483, allocations: 164.8 kB / 373.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3483, allocations: 0 / 373.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004442/0.3488, allocations: 80.8 kB / 373.3 MB, free: 17.98 MB / 302.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001435/0.3489, allocations: 102 kB / 373.4 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005935/0.3495, allocations: 291.3 kB / 373.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3495, allocations: 0 / 373.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.3498, allocations: 197.4 kB / 373.9 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00036/0.3502, allocations: 39.33 kB / 374 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.3518, allocations: 0.8367 MB / 374.8 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.3521, allocations: 0.7587 MB / 375.6 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.3522, allocations: 23.66 kB / 375.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.418e-05/0.3523, allocations: 20.41 kB / 375.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3523, allocations: 0 / 375.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of Templates: time 0.007987/0.3602, allocations: 2.758 MB / 378.4 MB, free: 16.39 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches