Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 115.6 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001295, allocations: 206.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.404/1.404, allocations: 227.7 MB / 247.9 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 55.91 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2321, allocations: 50.55 MB / 410.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004164/0.2363, allocations: 2.889 MB / 413.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.2377, allocations: 0.7711 MB / 413.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.2378, allocations: 4 kB / 413.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.238, allocations: 47.5 kB / 413.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.2382, allocations: 91.19 kB / 414 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.2385, allocations: 103.8 kB / 414.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.239, allocations: 374.4 kB / 414.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.2392, allocations: 99.2 kB / 414.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.2393, allocations: 135.5 kB / 414.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001996/0.2395, allocations: 155.3 kB / 414.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.019e-05/0.2396, allocations: 32 kB / 414.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.905e-05/0.2396, allocations: 32 kB / 414.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.735e-05/0.2397, allocations: 63.81 kB / 415 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.2399, allocations: 163.2 kB / 415.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004058/0.2403, allocations: 366.3 kB / 415.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2403, allocations: 0 / 415.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2403, allocations: 4 kB / 415.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.2403, allocations: 0 / 415.5 MB, free: 12.12 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.001056/0.2413, allocations: 0.6092 MB / 416.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.2414, allocations: 12.03 kB / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.816e-05/0.2415, allocations: 40.7 kB / 416.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.2419, allocations: 265 kB / 416.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-05/0.2419, allocations: 76.62 kB / 416.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.21e-05/0.242, allocations: 28.38 kB / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005141/0.2425, allocations: 301.8 kB / 416.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2425, allocations: 0 / 416.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.2426, allocations: 16 kB / 416.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.2426, allocations: 11.98 kB / 416.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003608/0.2429, allocations: 194.1 kB / 417 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.2446, allocations: 1.12 MB / 418.2 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.245, allocations: 158.5 kB / 418.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.2451, allocations: 68.83 kB / 418.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.2451, allocations: 4 kB / 418.4 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.2454, allocations: 151.2 kB / 418.5 MB, free: 8.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.2454, allocations: 0 / 418.5 MB, free: 8.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001085/0.2465, allocations: 398.8 kB / 418.9 MB, free: 8.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.744e-05/0.2466, allocations: 106.8 kB / 419 MB, free: 8.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.2468, allocations: 217 kB / 419.2 MB, free: 8.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.2468, allocations: 37.64 kB / 419.3 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.247, allocations: 188.5 kB / 419.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.034e-05/0.247, allocations: 71.44 kB / 419.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.2472, allocations: 61.64 kB / 419.6 MB, free: 7.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.2473, allocations: 330.8 kB / 419.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.2475, allocations: 67.97 kB / 420 MB, free: 7.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.2477, allocations: 157.3 kB / 420.1 MB, free: 7.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.248, allocations: 184.2 kB / 420.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.248, allocations: 0 / 420.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004692/0.2485, allocations: 272.5 kB / 420.6 MB, free: 6.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.2485, allocations: 11.98 kB / 420.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2485, allocations: 0 / 420.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003127/0.2488, allocations: 57.03 kB / 420.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.2491, allocations: 51.92 kB / 420.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001647/0.2507, allocations: 1.572 MB / 422.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.2509, allocations: 43.89 kB / 422.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.251, allocations: 8 kB / 422.3 MB, free: 4.785 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.0002013/0.2512, allocations: 161.7 kB / 422.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/0.2512, allocations: 19.86 kB / 422.5 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.218e-05/0.2513, allocations: 26.19 kB / 422.5 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2513, allocations: 0 / 422.5 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.2513, allocations: 0 / 422.5 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.2513, allocations: 11.98 kB / 422.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003751/0.2516, allocations: 329.3 kB / 422.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2516, allocations: 0 / 422.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.2518, allocations: 31.92 kB / 422.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.252, allocations: 48.81 kB / 422.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.252, allocations: 8 kB / 422.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.2533, allocations: 1.422 MB / 424.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2533, allocations: 0 / 424.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006432/0.2539, allocations: 321.6 kB / 424.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.254, allocations: 116.9 kB / 424.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.2541, allocations: 8.125 kB / 424.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.2542, allocations: 19.92 kB / 424.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.254e-05/0.2543, allocations: 35.89 kB / 424.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.2543, allocations: 4 kB / 424.9 MB, free: 2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.2545, allocations: 164.5 kB / 425 MB, free: 1.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2545, allocations: 0 / 425 MB, free: 1.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003771/0.2549, allocations: 87.78 kB / 425.1 MB, free: 1.758 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.0001562/0.255, allocations: 106.4 kB / 425.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000593/0.2556, allocations: 282.4 kB / 425.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2556, allocations: 0 / 425.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.2559, allocations: 182.6 kB / 425.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.2562, allocations: 44.84 kB / 425.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.2578, allocations: 0.6582 MB / 426.4 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.2582, allocations: 0.7597 MB / 427.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.593e-05/0.2582, allocations: 18.3 kB / 427.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.363e-05/0.2583, allocations: 27.44 kB / 427.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2583, allocations: 0 / 427.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Templates: time 0.007571/0.2659, allocations: 3.117 MB / 430.3 MB, free: 12.52 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches