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.001298/0.001298, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247.5 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 63.39 kB / 307.6 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1106, allocations: 50.53 MB / 358.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004468/0.1151, allocations: 2.88 MB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.1166, allocations: 0.7672 MB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.1168, allocations: 8 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.117, allocations: 47.5 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001893/0.1172, allocations: 87.19 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.1176, allocations: 103.8 kB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004028/0.118, allocations: 374.4 kB / 362.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.1182, allocations: 127.3 kB / 362.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.1184, allocations: 135.5 kB / 362.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.1186, allocations: 155.3 kB / 362.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.233e-05/0.1187, allocations: 32 kB / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.35e-05/0.1187, allocations: 28 kB / 362.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.388e-05/0.1188, allocations: 67.81 kB / 363 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.119, allocations: 171.2 kB / 363.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000375/0.1194, allocations: 359 kB / 363.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1194, allocations: 0 / 363.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1194, allocations: 0 / 363.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1194, allocations: 0 / 363.5 MB, free: 8.73 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.00109/0.1205, allocations: 0.6018 MB / 364.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1205, allocations: 12.03 kB / 364.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.861e-05/0.1206, allocations: 32.56 kB / 364.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.121, allocations: 272.3 kB / 364.4 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-05/0.1211, allocations: 76.62 kB / 364.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.1212, allocations: 28.38 kB / 364.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.1217, allocations: 309.8 kB / 364.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1217, allocations: 4 kB / 364.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.1217, allocations: 11.98 kB / 364.8 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.1218, allocations: 8 kB / 364.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000358/0.1221, allocations: 194.1 kB / 365 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.1239, allocations: 1.123 MB / 366.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.1243, allocations: 158.6 kB / 366.3 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.1244, allocations: 84.77 kB / 366.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.1245, allocations: 4 kB / 366.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003303/0.1248, allocations: 156.8 kB / 366.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.1248, allocations: 0 / 366.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001136/0.126, allocations: 391.1 kB / 366.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.894e-05/0.1261, allocations: 102.8 kB / 367 MB, free: 4.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.1263, allocations: 228.9 kB / 367.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.1264, allocations: 33.7 kB / 367.3 MB, free: 4.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.1265, allocations: 172.2 kB / 367.4 MB, free: 4.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.061e-05/0.1266, allocations: 75 kB / 367.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.857e-05/0.1267, allocations: 57.64 kB / 367.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1269, allocations: 334.8 kB / 367.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.127, allocations: 67.97 kB / 368 MB, free: 3.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.1272, allocations: 140.8 kB / 368.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.1275, allocations: 193.8 kB / 368.3 MB, free: 3.547 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1275, allocations: 0 / 368.3 MB, free: 3.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004564/0.128, allocations: 272.4 kB / 368.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.128, allocations: 8 kB / 368.6 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.128, allocations: 0 / 368.6 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002752/0.1283, allocations: 53.03 kB / 368.6 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.1286, allocations: 59.91 kB / 368.7 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.1302, allocations: 1.58 MB / 370.3 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.1304, allocations: 39.67 kB / 370.3 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.1305, allocations: 12 kB / 370.3 MB, free: 1.387 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.0001865/0.1306, allocations: 150.1 kB / 370.5 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.95e-05/0.1307, allocations: 19.72 kB / 370.5 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.905e-05/0.1308, allocations: 30.17 kB / 370.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1308, allocations: 4.062 kB / 370.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.1308, allocations: 0 / 370.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1308, allocations: 0 / 370.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00037/0.1312, allocations: 321.4 kB / 370.8 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1312, allocations: 4 kB / 370.8 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.1313, allocations: 31.92 kB / 370.9 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001953/0.1315, allocations: 52.81 kB / 370.9 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.1316, allocations: 7.938 kB / 370.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1446/0.2762, allocations: 1.411 MB / 372.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.2763, allocations: 1.656 kB / 372.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008191/0.2771, allocations: 328.2 kB / 372.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.2772, allocations: 116.3 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.2773, allocations: 8.312 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.2775, allocations: 19.52 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.2776, allocations: 28.7 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.2776, allocations: 9.312 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001467/0.2778, allocations: 165.5 kB / 373 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.21e-07/0.2778, allocations: 3.828 kB / 373 MB, free: 18.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004231/0.2782, allocations: 80.08 kB / 373.1 MB, free: 18.93 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.0001389/0.2783, allocations: 106.2 kB / 373.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005744/0.2789, allocations: 295 kB / 373.5 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2789, allocations: 0 / 373.5 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.2792, allocations: 193.9 kB / 373.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.2795, allocations: 45.41 kB / 373.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.2812, allocations: 0.6858 MB / 374.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.2814, allocations: 0.7577 MB / 375.1 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.5e-05/0.2815, allocations: 22.59 kB / 375.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2815, allocations: 0 / 375.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of Templates: time 0.007994/0.2895, allocations: 4.171 MB / 379.3 MB, free: 17.32 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches