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.001517/0.001517, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.002126/0.002126, allocations: 188.5 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.045/3.045, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 47.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5588/0.5608, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.008013/0.5689, allocations: 2.868 MB / 404.3 MB, free: 6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003219/0.5722, allocations: 0.7244 MB / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004719/0.5727, allocations: 4 kB / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003239/0.5731, allocations: 51.5 kB / 405.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004256/0.5736, allocations: 91.19 kB / 405.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006485/0.5742, allocations: 107.7 kB / 405.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007536/0.575, allocations: 366.4 kB / 405.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003915/0.5754, allocations: 119.2 kB / 405.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/0.5757, allocations: 139.5 kB / 405.9 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.5761, allocations: 147.4 kB / 406 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.04e-05/0.5762, allocations: 28 kB / 406 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.936e-05/0.5763, allocations: 32 kB / 406.1 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.5764, allocations: 75.73 kB / 406.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.5767, allocations: 163.2 kB / 406.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006809/0.5774, allocations: 367.9 kB / 406.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.629e-05/0.5775, allocations: 4 kB / 406.7 MB, free: 3.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.5775, allocations: 3.938 kB / 406.7 MB, free: 3.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.5775, allocations: 4 kB / 406.7 MB, free: 3.594 MB / 318.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.001858/0.5794, allocations: 0.6017 MB / 407.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.536e-05/0.5795, allocations: 8.031 kB / 407.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.5796, allocations: 36.56 kB / 407.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007577/0.5804, allocations: 269 kB / 407.6 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.5806, allocations: 80.56 kB / 407.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.349e-05/0.5807, allocations: 28.28 kB / 407.7 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009653/0.5817, allocations: 301.9 kB / 408 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.5817, allocations: 0 / 408 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.5818, allocations: 12 kB / 408 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.5818, allocations: 12 kB / 408 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000687/0.5825, allocations: 190.1 kB / 408.2 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00328/0.5858, allocations: 1.115 MB / 409.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006045/0.5865, allocations: 166.5 kB / 409.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.5868, allocations: 72.83 kB / 409.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.552e-05/0.5868, allocations: 11.98 kB / 409.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004966/0.5873, allocations: 151.5 kB / 409.7 MB, free: 348 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 3.166e-06/0.5874, allocations: 0 / 409.7 MB, free: 348 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001984/0.5894, allocations: 389.5 kB / 410.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.5895, allocations: 102.8 kB / 410.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000437/0.59, allocations: 232.9 kB / 410.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.854e-05/0.59, allocations: 33.7 kB / 410.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.5902, allocations: 180.2 kB / 410.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.5904, allocations: 75.08 kB / 410.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004328/0.5947, allocations: 57.61 kB / 410.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.595, allocations: 334.8 kB / 411.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002929/0.5953, allocations: 71.97 kB / 411.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003633/0.5957, allocations: 148.4 kB / 411.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005541/0.5963, allocations: 192.9 kB / 411.5 MB, free: 14.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.5963, allocations: 0 / 411.5 MB, free: 14.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001003/0.5973, allocations: 264.5 kB / 411.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.5974, allocations: 11.94 kB / 411.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.5974, allocations: 0 / 411.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005703/0.598, allocations: 61.03 kB / 411.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005086/0.5985, allocations: 51.91 kB / 411.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.6012, allocations: 1.568 MB / 413.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000517/0.6018, allocations: 35.92 kB / 413.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.994e-05/0.6019, allocations: 12 kB / 413.5 MB, free: 12.27 MB / 334.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.0003392/0.6022, allocations: 153.6 kB / 413.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.307e-05/0.6023, allocations: 27.66 kB / 413.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004165/0.6065, allocations: 30.17 kB / 413.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.6066, allocations: 0 / 413.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.6066, allocations: 0 / 413.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.6066, allocations: 4 kB / 413.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008302/0.6075, allocations: 325.3 kB / 414 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.6075, allocations: 3.938 kB / 414 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.6079, allocations: 31.98 kB / 414 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004599/0.6084, allocations: 48.81 kB / 414.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.876e-05/0.6084, allocations: 4 kB / 414.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/0.6108, allocations: 1.433 MB / 415.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6109, allocations: 0 / 415.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.6121, allocations: 328.7 kB / 415.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.6124, allocations: 112.8 kB / 416 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.211e-05/0.6125, allocations: 7.984 kB / 416 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003189/0.6128, allocations: 20.11 kB / 416 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.613, allocations: 27.95 kB / 416 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.6131, allocations: 8 kB / 416 MB, free: 9.484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002948/0.6134, allocations: 160.5 kB / 416.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6134, allocations: 0 / 416.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000756/0.6142, allocations: 87.73 kB / 416.3 MB, free: 9.242 MB / 334.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.0002319/0.6144, allocations: 107.2 kB / 416.4 MB, free: 9.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001192/0.6197, allocations: 282.5 kB / 416.6 MB, free: 8.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.6197, allocations: 7.938 kB / 416.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004994/0.6202, allocations: 198.5 kB / 416.8 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006575/0.6209, allocations: 36.86 kB / 416.9 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002977/0.6239, allocations: 0.6571 MB / 417.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000622/0.6246, allocations: 0.7635 MB / 418.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.6247, allocations: 35.36 kB / 418.3 MB, free: 7.074 MB / 334.1 MB Notification: Performance of SimCode: time 1.503e-06/0.6248, allocations: 0 / 418.3 MB, free: 7.074 MB / 334.1 MB Notification: Performance of Templates: time 0.0225/0.6473, allocations: 4.224 MB / 422.6 MB, free: 2.852 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/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