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.001634/0.001634, allocations: 110.9 kB / 17.74 MB, free: 5.316 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.001779/0.001779, allocations: 188.4 kB / 18.67 MB, free: 4.395 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.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 43.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2354, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004022/0.2395, allocations: 2.863 MB / 404.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.2408, allocations: 0.7322 MB / 405 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.241, allocations: 4 kB / 405 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.2412, allocations: 51.5 kB / 405.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002258/0.2415, allocations: 91.12 kB / 405.2 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.2418, allocations: 95.83 kB / 405.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.2423, allocations: 374.4 kB / 405.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/0.2425, allocations: 111.3 kB / 405.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.2427, allocations: 143.4 kB / 405.9 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.2429, allocations: 151.4 kB / 406 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.311e-05/0.243, allocations: 32 kB / 406 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.44e-05/0.2431, allocations: 32 kB / 406.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.998e-05/0.2431, allocations: 75.69 kB / 406.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.2433, allocations: 167.2 kB / 406.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.2436, allocations: 363.9 kB / 406.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2436, allocations: 0 / 406.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2436, allocations: 0 / 406.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.2436, allocations: 0 / 406.7 MB, free: 3.586 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.000964/0.2446, allocations: 0.6056 MB / 407.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2447, allocations: 12.02 kB / 407.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.332e-05/0.2447, allocations: 40.55 kB / 407.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.2451, allocations: 261 kB / 407.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.2452, allocations: 84.61 kB / 407.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.2453, allocations: 32.28 kB / 407.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004644/0.2458, allocations: 297.9 kB / 408 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2458, allocations: 0 / 408 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.2458, allocations: 8 kB / 408 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.2458, allocations: 8 kB / 408 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003266/0.2462, allocations: 194.1 kB / 408.2 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.2478, allocations: 1.123 MB / 409.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.2481, allocations: 165.2 kB / 409.5 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.2483, allocations: 72.84 kB / 409.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.2483, allocations: 4 kB / 409.6 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.2485, allocations: 167.6 kB / 409.7 MB, free: 324 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.333e-06/0.2485, allocations: 0 / 409.7 MB, free: 324 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001051/0.2496, allocations: 389.2 kB / 410.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.2497, allocations: 106.8 kB / 410.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/0.2499, allocations: 228.9 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.2499, allocations: 33.7 kB / 410.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.2501, allocations: 176.2 kB / 410.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.25e-05/0.2501, allocations: 67.02 kB / 410.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.336e-05/0.2502, allocations: 61.59 kB / 410.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.2504, allocations: 342.7 kB / 411.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.2505, allocations: 67.98 kB / 411.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.2507, allocations: 148.5 kB / 411.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.2509, allocations: 188.9 kB / 411.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.251, allocations: 0 / 411.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004213/0.2514, allocations: 272.5 kB / 411.8 MB, free: 14.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.2514, allocations: 11.94 kB / 411.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2514, allocations: 7.875 kB / 411.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.2517, allocations: 57.03 kB / 411.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.2519, allocations: 51.92 kB / 411.9 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.2532, allocations: 1.568 MB / 413.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.2535, allocations: 31.86 kB / 413.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.2535, allocations: 15.98 kB / 413.5 MB, free: 12.25 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.0001506/0.2536, allocations: 157.7 kB / 413.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.2537, allocations: 23.72 kB / 413.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.855e-05/0.2538, allocations: 26.17 kB / 413.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2538, allocations: 0 / 413.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2538, allocations: 4 kB / 413.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2538, allocations: 0 / 413.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002951/0.2541, allocations: 321.3 kB / 414 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2541, allocations: 0 / 414 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.2543, allocations: 27.98 kB / 414 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002351/0.2545, allocations: 60.75 kB / 414.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.2545, allocations: 3.984 kB / 414.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.2557, allocations: 1.418 MB / 415.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2557, allocations: 0 / 415.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006175/0.2564, allocations: 332.6 kB / 415.8 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.315e-05/0.2565, allocations: 112.8 kB / 416 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.2565, allocations: 8 kB / 416 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.2567, allocations: 15.98 kB / 416 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.62e-05/0.2568, allocations: 27.95 kB / 416 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.2568, allocations: 8.062 kB / 416 MB, free: 9.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.257, allocations: 164.5 kB / 416.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.257, allocations: 0 / 416.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003549/0.2573, allocations: 83.75 kB / 416.3 MB, free: 9.238 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.0001138/0.2574, allocations: 107.2 kB / 416.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005303/0.258, allocations: 294.8 kB / 416.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.258, allocations: 4.125 kB / 416.7 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002641/0.2583, allocations: 198.5 kB / 416.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.2586, allocations: 40.34 kB / 416.9 MB, free: 8.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.2601, allocations: 0.6647 MB / 417.6 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.2603, allocations: 0.7635 MB / 418.3 MB, free: 7.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.902e-05/0.2604, allocations: 19.44 kB / 418.3 MB, free: 7.066 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2604, allocations: 0 / 418.3 MB, free: 7.066 MB / 334.1 MB Notification: Performance of Templates: time 0.005837/0.2662, allocations: 4.203 MB / 422.5 MB, free: 2.867 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