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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007693/0.0007693, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008155/0.0008154, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00018/0.00018, allocations: 8 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07948/0.07968, allocations: 51.53 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004359/0.08407, allocations: 2.82 MB / 362.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.08568, allocations: 0.7907 MB / 363 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.08581, allocations: 12 kB / 363 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.08598, allocations: 43.67 kB / 363 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002556/0.08625, allocations: 87.23 kB / 363.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.08667, allocations: 107.8 kB / 363.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005576/0.08725, allocations: 402.2 kB / 363.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002692/0.08754, allocations: 120.2 kB / 363.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.0878, allocations: 135.4 kB / 363.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.08806, allocations: 163.2 kB / 364 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.199e-05/0.08813, allocations: 16 kB / 364 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.783e-05/0.08824, allocations: 27.94 kB / 364.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.147e-05/0.08834, allocations: 59.7 kB / 364.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.08856, allocations: 196.8 kB / 364.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.08891, allocations: 402.7 kB / 364.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.08892, allocations: 0 / 364.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.08893, allocations: 0 / 364.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.08894, allocations: 0 / 364.7 MB, free: 7.801 MB / 302.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.0008241/0.08977, allocations: 0.608 MB / 365.3 MB, free: 7.141 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.08981, allocations: 8.031 kB / 365.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.933e-05/0.08989, allocations: 70.72 kB / 365.4 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.09005, allocations: 48.55 kB / 365.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002838/0.09034, allocations: 289.1 kB / 365.7 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.433e-05/0.09042, allocations: 80.62 kB / 365.8 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.09047, allocations: 28.38 kB / 365.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.09098, allocations: 346.6 kB / 366.2 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.09099, allocations: 3.938 kB / 366.2 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.09103, allocations: 19.98 kB / 366.2 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.09105, allocations: 12 kB / 366.2 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003862/0.09144, allocations: 222.5 kB / 366.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.09307, allocations: 1.376 MB / 367.8 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.09337, allocations: 174.5 kB / 368 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.09353, allocations: 92.83 kB / 368.1 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.09356, allocations: 0 / 368.1 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.09382, allocations: 163.9 kB / 368.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.212e-06/0.09384, allocations: 4 kB / 368.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001005/0.09485, allocations: 422.6 kB / 368.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.09491, allocations: 114.8 kB / 368.7 MB, free: 3.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.09515, allocations: 258.6 kB / 369 MB, free: 3.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.09518, allocations: 33.7 kB / 369 MB, free: 3.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.0953, allocations: 207.8 kB / 369.2 MB, free: 2.945 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.028e-05/0.09536, allocations: 75.05 kB / 369.3 MB, free: 2.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/0.09541, allocations: 33.7 kB / 369.3 MB, free: 2.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.09552, allocations: 334.8 kB / 369.7 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.09567, allocations: 76.62 kB / 369.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.09588, allocations: 185.5 kB / 369.9 MB, free: 2.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.09621, allocations: 241.3 kB / 370.2 MB, free: 1.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.09622, allocations: 0 / 370.2 MB, free: 1.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006284/0.09685, allocations: 352.4 kB / 370.5 MB, free: 1.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.09688, allocations: 4 kB / 370.5 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.09689, allocations: 8 kB / 370.5 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002185/0.09711, allocations: 60.97 kB / 370.6 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.09735, allocations: 63.91 kB / 370.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1515/0.2489, allocations: 1.402 MB / 372 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.2493, allocations: 56.59 kB / 372.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.2493, allocations: 12.44 kB / 372.1 MB, free: 18.36 MB / 302.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.0001807/0.2495, allocations: 157 kB / 372.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.2495, allocations: 26.19 kB / 372.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.69e-05/0.2496, allocations: 29.7 kB / 372.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2496, allocations: 4.703 kB / 372.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.2496, allocations: 0 / 372.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2496, allocations: 2.109 kB / 372.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003666/0.25, allocations: 341.5 kB / 372.7 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.25, allocations: 1.375 kB / 372.7 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001997/0.2502, allocations: 41.97 kB / 372.7 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002211/0.2505, allocations: 53.73 kB / 372.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.2505, allocations: 10.22 kB / 372.8 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008179/0.2513, allocations: 1.323 MB / 374.1 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2513, allocations: 0.5156 kB / 374.1 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006756/0.252, allocations: 355 kB / 374.4 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.976e-05/0.2521, allocations: 114.8 kB / 374.5 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.2521, allocations: 5.812 kB / 374.5 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.2523, allocations: 25.56 kB / 374.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.367e-05/0.2524, allocations: 26.78 kB / 374.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.2524, allocations: 11.56 kB / 374.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001631/0.2526, allocations: 192 kB / 374.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2526, allocations: 0.9688 kB / 374.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003749/0.253, allocations: 86.25 kB / 374.9 MB, free: 16.56 MB / 302.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007864/0.2538, allocations: 0.8932 MB / 375.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005438/0.2543, allocations: 317.7 kB / 376.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2544, allocations: 0 / 376.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.2546, allocations: 203.3 kB / 376.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.2549, allocations: 39.12 kB / 376.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003643/0.2586, allocations: 3.113 MB / 379.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001906/0.2588, allocations: 0.7746 MB / 380.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.2589, allocations: 30.42 kB / 380.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.2591, allocations: 98.41 kB / 380.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2591, allocations: 0 / 380.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.2761, allocations: 5.43 MB / 385.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001305/0.2763, allocations: 252.9 kB / 386 MB, free: 12.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/1.933, allocations: 0 / 386 MB, free: 12.38 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > 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