Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001105/0.001105, allocations: 114.3 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001192/0.001192, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2401, allocations: 50.54 MB / 410 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003967/0.2441, allocations: 3.158 MB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.2456, allocations: 0.8139 MB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.2458, allocations: 8 kB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.246, allocations: 59.42 kB / 414 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.2463, allocations: 103.1 kB / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004391/0.2467, allocations: 123.7 kB / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.2472, allocations: 414.2 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002441/0.2474, allocations: 143.7 kB / 414.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003425/0.2478, allocations: 167.4 kB / 414.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.248, allocations: 171.2 kB / 415.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.537e-05/0.2481, allocations: 39.98 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.2482, allocations: 40 kB / 415.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.468e-05/0.2483, allocations: 83.69 kB / 415.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001819/0.2485, allocations: 183.1 kB / 415.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004391/0.2489, allocations: 431.6 kB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.2489, allocations: 3.938 kB / 415.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2489, allocations: 0 / 415.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.2489, allocations: 0 / 415.8 MB, free: 11.67 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001117/0.2501, allocations: 0.6548 MB / 416.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.2501, allocations: 8.031 kB / 416.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.2503, allocations: 48.55 kB / 416.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.2507, allocations: 289.1 kB / 416.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.293e-05/0.2508, allocations: 76.62 kB / 416.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.2509, allocations: 36.36 kB / 417 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000558/0.2514, allocations: 342.9 kB / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.2515, allocations: 0 / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.2515, allocations: 19.94 kB / 417.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.2515, allocations: 8 kB / 417.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004096/0.2519, allocations: 214.5 kB / 417.5 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.2537, allocations: 1.356 MB / 418.9 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.2541, allocations: 170.5 kB / 419 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.2542, allocations: 96.75 kB / 419.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.2543, allocations: 4 kB / 419.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002698/0.2545, allocations: 155 kB / 419.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.754e-06/0.2545, allocations: 0 / 419.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001106/0.2557, allocations: 410.5 kB / 419.7 MB, free: 7.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.2557, allocations: 110.8 kB / 419.8 MB, free: 7.418 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.256, allocations: 262.7 kB / 420.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.256, allocations: 29.7 kB / 420.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.2561, allocations: 207.9 kB / 420.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.094e-05/0.2562, allocations: 74.98 kB / 420.4 MB, free: 6.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.4e-05/0.2563, allocations: 65.94 kB / 420.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.2564, allocations: 330.8 kB / 420.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.2566, allocations: 80.61 kB / 420.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.2568, allocations: 185.5 kB / 421 MB, free: 6.129 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003766/0.2572, allocations: 227.6 kB / 421.2 MB, free: 5.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2572, allocations: 0 / 421.2 MB, free: 5.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006825/0.2579, allocations: 344.2 kB / 421.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.258, allocations: 8.344 kB / 421.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.258, allocations: 4 kB / 421.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.2583, allocations: 60.75 kB / 421.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.2585, allocations: 67.84 kB / 421.7 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001468/0.26, allocations: 1.572 MB / 423.3 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.2603, allocations: 43.66 kB / 423.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.2603, allocations: 16 kB / 423.3 MB, free: 3.621 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.000164/0.2605, allocations: 149.7 kB / 423.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.2605, allocations: 27.62 kB / 423.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.898e-05/0.2606, allocations: 38.11 kB / 423.6 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.2606, allocations: 4.062 kB / 423.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2606, allocations: 0 / 423.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.2607, allocations: 108.8 kB / 423.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.024e-05/0.2608, allocations: 8 kB / 423.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.261, allocations: 19.98 kB / 423.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.912e-05/0.2611, allocations: 19.97 kB / 423.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006071/0.2617, allocations: 297.6 kB / 424 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005653/0.2623, allocations: 453.6 kB / 424.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001525/0.2624, allocations: 79.94 kB / 424.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001616/0.2626, allocations: 186 kB / 424.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of Backend: time 5.51e-07/0.2626, allocations: 4 kB / 424.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008804/0.2635, allocations: 340.8 kB / 425 MB, free: 1.848 MB / 334.1 MB Notification: Performance of SimCode: time 0.001307/0.2648, allocations: 1.073 MB / 426.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of Templates: time 0.007872/0.2727, allocations: 3.371 MB / 429.5 MB, free: 13.38 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches