Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 90.56 kB / 16.65 MB, free: 6.602 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.0009186/0.0009189, allocations: 174.6 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003554, allocations: 11.94 kB / 301.4 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1091, allocations: 50.41 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003484/0.1127, allocations: 2.533 MB / 354.4 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1143, allocations: 0.7168 MB / 355.1 MB, free: 196 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002374/0.1146, allocations: 7.938 kB / 355.1 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1147, allocations: 35.75 kB / 355.1 MB, free: 152 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.115, allocations: 79.31 kB / 355.2 MB, free: 72 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.1153, allocations: 80 kB / 355.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003564/0.1157, allocations: 358.4 kB / 355.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002201/0.1159, allocations: 99.81 kB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.1161, allocations: 119.5 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.1163, allocations: 131.4 kB / 356 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.33e-05/0.1163, allocations: 23.92 kB / 356 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.123e-05/0.1164, allocations: 16 kB / 356 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.603e-05/0.1164, allocations: 55.77 kB / 356.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.1166, allocations: 176.9 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003067/0.1169, allocations: 338.9 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1169, allocations: 0 / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1169, allocations: 4 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1169, allocations: 0 / 356.6 MB, free: 14.68 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.0009694/0.1179, allocations: 0.5589 MB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.118, allocations: 8.031 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.279e-05/0.1181, allocations: 36.56 kB / 357.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003326/0.1184, allocations: 268.3 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.492e-05/0.1185, allocations: 76.62 kB / 357.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.896e-05/0.1186, allocations: 32.38 kB / 357.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004917/0.1191, allocations: 297.9 kB / 357.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1191, allocations: 0 / 357.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.231e-05/0.1191, allocations: 12 kB / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1191, allocations: 8 kB / 357.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.1195, allocations: 194.1 kB / 358 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.1212, allocations: 1.143 MB / 359.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.1215, allocations: 150.6 kB / 359.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1217, allocations: 84.83 kB / 359.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.1217, allocations: 3.984 kB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003193/0.122, allocations: 165 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.122, allocations: 0 / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00102/0.1231, allocations: 391.2 kB / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/0.1231, allocations: 106.8 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.1234, allocations: 233 kB / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.1234, allocations: 29.7 kB / 360.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.1235, allocations: 180.2 kB / 360.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.729e-05/0.1236, allocations: 67.08 kB / 360.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.424e-05/0.1236, allocations: 33.7 kB / 360.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1238, allocations: 334.8 kB / 360.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.1239, allocations: 67.91 kB / 361 MB, free: 9.945 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.1241, allocations: 144.6 kB / 361.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.1243, allocations: 193.1 kB / 361.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1243, allocations: 0 / 361.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004136/0.1248, allocations: 268.4 kB / 361.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.1248, allocations: 8 kB / 361.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1248, allocations: 224 / 361.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002803/0.1251, allocations: 64.75 kB / 361.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.1253, allocations: 47.92 kB / 361.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.1266, allocations: 1.416 MB / 363.1 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/0.1269, allocations: 47.83 kB / 363.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.1269, allocations: 12 kB / 363.2 MB, free: 7.559 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.000146/0.1271, allocations: 145 kB / 363.3 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.052e-05/0.1271, allocations: 31.64 kB / 363.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.096e-05/0.1272, allocations: 26.19 kB / 363.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.1272, allocations: 8 kB / 363.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-06/0.1272, allocations: 0 / 363.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.1272, allocations: 3.984 kB / 363.4 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.1275, allocations: 317.3 kB / 363.7 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.1275, allocations: 0 / 363.7 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.1277, allocations: 35.92 kB / 363.7 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001796/0.1279, allocations: 56.81 kB / 363.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.1279, allocations: 3.938 kB / 363.8 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.129, allocations: 1.323 MB / 365.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.129, allocations: 3.984 kB / 365.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006261/0.1296, allocations: 334.8 kB / 365.5 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.1297, allocations: 112.8 kB / 365.6 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.1298, allocations: 7.984 kB / 365.6 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.1299, allocations: 19.98 kB / 365.6 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.718e-05/0.13, allocations: 27.95 kB / 365.6 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.1301, allocations: 7.938 kB / 365.6 MB, free: 4.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000161/0.1302, allocations: 168.5 kB / 365.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1302, allocations: 0 / 365.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003518/0.1306, allocations: 79.84 kB / 365.9 MB, free: 4.641 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.0001809/0.1308, allocations: 107.7 kB / 366 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000557/0.1313, allocations: 290.4 kB / 366.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1314, allocations: 448 / 366.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.1317, allocations: 200.9 kB / 366.5 MB, free: 4.023 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.132, allocations: 32.36 kB / 366.5 MB, free: 3.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.1337, allocations: 0.8408 MB / 367.3 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.134, allocations: 0.756 MB / 368.1 MB, free: 2.344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.611e-05/0.1341, allocations: 22.3 kB / 368.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.134e-05/0.1342, allocations: 19.44 kB / 368.1 MB, free: 2.305 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1342, allocations: 0 / 368.1 MB, free: 2.305 MB / 302.1 MB Notification: Performance of Templates: time 0.1953/0.3295, allocations: 2.752 MB / 370.9 MB, free: 23.94 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches