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.001386/0.001386, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001738/0.001738, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.184/2.184, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 63.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3736, allocations: 50.54 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006085/0.3797, allocations: 2.894 MB / 412.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.3821, allocations: 0.7556 MB / 413.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002456/0.3824, allocations: 4 kB / 413.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.3827, allocations: 51.5 kB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002952/0.383, allocations: 91.12 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004791/0.3835, allocations: 103.8 kB / 413.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000619/0.3842, allocations: 370.4 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003444/0.3845, allocations: 127.2 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.3848, allocations: 139.5 kB / 414.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003127/0.3851, allocations: 163.3 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.287e-05/0.3852, allocations: 35.94 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.351e-05/0.3853, allocations: 28 kB / 414.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.937e-05/0.3854, allocations: 63.83 kB / 414.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.3856, allocations: 167.2 kB / 414.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000557/0.3862, allocations: 363.9 kB / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3862, allocations: 0 / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3862, allocations: 0 / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.3863, allocations: 0 / 415.3 MB, free: 12.27 MB / 334.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.001463/0.3877, allocations: 0.6017 MB / 415.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.3878, allocations: 8.031 kB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.3879, allocations: 40.55 kB / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005677/0.3885, allocations: 264.4 kB / 416.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.3886, allocations: 88.61 kB / 416.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.617e-05/0.3887, allocations: 24.38 kB / 416.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007885/0.3895, allocations: 297.9 kB / 416.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.3896, allocations: 0 / 416.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.499e-05/0.3896, allocations: 11.94 kB / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3896, allocations: 8 kB / 416.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005483/0.3902, allocations: 190.2 kB / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.3928, allocations: 1.131 MB / 417.9 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004707/0.3933, allocations: 150.6 kB / 418 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.3936, allocations: 76.83 kB / 418.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.3936, allocations: 4 kB / 418.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000403/0.394, allocations: 168.7 kB / 418.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.815e-06/0.394, allocations: 0 / 418.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00159/0.3956, allocations: 387.2 kB / 418.7 MB, free: 8.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.3958, allocations: 106.8 kB / 418.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003949/0.3962, allocations: 225 kB / 419 MB, free: 8.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.3962, allocations: 37.64 kB / 419 MB, free: 8.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.3964, allocations: 176.2 kB / 419.2 MB, free: 8.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.049e-05/0.3965, allocations: 71.03 kB / 419.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.3967, allocations: 61.59 kB / 419.3 MB, free: 7.887 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.3969, allocations: 342.8 kB / 419.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.3971, allocations: 59.98 kB / 419.7 MB, free: 7.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.3974, allocations: 145.5 kB / 419.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004413/0.3979, allocations: 188.2 kB / 420.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3979, allocations: 0 / 420.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007476/0.3986, allocations: 280.3 kB / 420.3 MB, free: 6.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.3987, allocations: 8 kB / 420.3 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3987, allocations: 0 / 420.3 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003825/0.3991, allocations: 61.03 kB / 420.4 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000322/0.3994, allocations: 47.92 kB / 420.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.4015, allocations: 1.572 MB / 422 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003735/0.4019, allocations: 31.86 kB / 422 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.052e-05/0.402, allocations: 15.98 kB / 422.1 MB, free: 4.945 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.0002574/0.4023, allocations: 157.7 kB / 422.2 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.4023, allocations: 23.72 kB / 422.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.869e-05/0.4024, allocations: 26.17 kB / 422.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.4024, allocations: 0 / 422.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.4025, allocations: 4 kB / 422.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.4025, allocations: 0 / 422.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004959/0.403, allocations: 321.3 kB / 422.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.403, allocations: 0 / 422.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.4032, allocations: 27.98 kB / 422.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002726/0.4035, allocations: 60.75 kB / 422.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/0.4036, allocations: 7.984 kB / 422.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.4054, allocations: 1.414 MB / 424.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.4054, allocations: 3.938 kB / 424.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.4065, allocations: 322.8 kB / 424.4 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.4067, allocations: 116.8 kB / 424.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.004e-05/0.4068, allocations: 8 kB / 424.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/0.4071, allocations: 15.98 kB / 424.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.4073, allocations: 39.94 kB / 424.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.4073, allocations: 4 kB / 424.6 MB, free: 2.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002427/0.4076, allocations: 168.4 kB / 424.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4076, allocations: 0 / 424.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007219/0.4083, allocations: 83.75 kB / 424.8 MB, free: 1.93 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.000182/0.4085, allocations: 107.2 kB / 424.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000848/0.4094, allocations: 297.8 kB / 425.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.4094, allocations: 4 kB / 425.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004498/0.4099, allocations: 190.6 kB / 425.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004964/0.4104, allocations: 36.41 kB / 425.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.4129, allocations: 0.6763 MB / 426.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.4134, allocations: 0.7595 MB / 426.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.9e-05/0.4135, allocations: 27.44 kB / 426.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4136, allocations: 0 / 426.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of Templates: time 0.00997/0.4235, allocations: 4.223 MB / 431.1 MB, free: 11.55 MB / 350.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.0.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