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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007172/0.0007173, allocations: 91.48 kB / 17.35 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007831/0.0007831, allocations: 200.1 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001943/0.0001943, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08022/0.08043, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002692/0.08315, allocations: 2.551 MB / 361.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.08443, allocations: 0.7479 MB / 362.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000193/0.08464, allocations: 4 kB / 362.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.08481, allocations: 39.69 kB / 362.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.08504, allocations: 75.39 kB / 362.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000307/0.08536, allocations: 83.86 kB / 362.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003965/0.08576, allocations: 358.4 kB / 363.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.08598, allocations: 107.8 kB / 363.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.08617, allocations: 123.5 kB / 363.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/0.08635, allocations: 135.3 kB / 363.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.297e-05/0.08641, allocations: 16 kB / 363.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.913e-05/0.08646, allocations: 16 kB / 363.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.138e-05/0.08652, allocations: 55.77 kB / 363.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/0.08668, allocations: 173 kB / 363.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003728/0.08706, allocations: 338.9 kB / 364.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.08707, allocations: 0 / 364.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.08708, allocations: 0 / 364.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.08709, allocations: 3.938 kB / 364.2 MB, free: 8.363 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008458/0.08794, allocations: 0.5473 MB / 364.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.08799, allocations: 19.97 kB / 364.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.293e-05/0.08807, allocations: 70.66 kB / 364.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.598e-05/0.08814, allocations: 36.56 kB / 364.8 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.08842, allocations: 260.4 kB / 365.1 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.328e-05/0.0885, allocations: 72.62 kB / 365.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.08856, allocations: 36.36 kB / 365.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.089, allocations: 297.6 kB / 365.5 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.08902, allocations: 4 kB / 365.5 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.08905, allocations: 12 kB / 365.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.08907, allocations: 8 kB / 365.5 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.08939, allocations: 190.1 kB / 365.7 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.09091, allocations: 1.139 MB / 366.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002708/0.09119, allocations: 158.5 kB / 367 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.09133, allocations: 80.88 kB / 367.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.09135, allocations: 0 / 367.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.0916, allocations: 156.8 kB / 367.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.142e-06/0.09161, allocations: 0 / 367.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009643/0.09258, allocations: 407.1 kB / 367.6 MB, free: 4.641 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.939e-05/0.09266, allocations: 110.8 kB / 367.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.09286, allocations: 221 kB / 367.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.09289, allocations: 33.7 kB / 368 MB, free: 4.242 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.09301, allocations: 176.1 kB / 368.1 MB, free: 4.066 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.22e-05/0.09307, allocations: 71.02 kB / 368.2 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.26e-05/0.09311, allocations: 29.7 kB / 368.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.09323, allocations: 342.8 kB / 368.6 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.09336, allocations: 67.97 kB / 368.6 MB, free: 3.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.09353, allocations: 136.7 kB / 368.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.09379, allocations: 190.1 kB / 369 MB, free: 3.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.0938, allocations: 3.938 kB / 369 MB, free: 3.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004139/0.09422, allocations: 272.5 kB / 369.2 MB, free: 2.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.09424, allocations: 8 kB / 369.2 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.09425, allocations: 0 / 369.2 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002522/0.0945, allocations: 61.03 kB / 369.3 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/0.09471, allocations: 51.91 kB / 369.4 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.09591, allocations: 1.416 MB / 370.8 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.09614, allocations: 43.7 kB / 370.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.09617, allocations: 12 kB / 370.8 MB, free: 1.176 MB / 302.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.0001399/0.09632, allocations: 150.9 kB / 371 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.09636, allocations: 27.66 kB / 371 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.618e-05/0.09641, allocations: 26.17 kB / 371 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.09642, allocations: 0 / 371 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.09643, allocations: 7.938 kB / 371 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.09643, allocations: 0 / 371 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002939/0.09673, allocations: 329.4 kB / 371.4 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.09674, allocations: 7.875 kB / 371.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.09691, allocations: 31.98 kB / 371.4 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001746/0.09709, allocations: 56.81 kB / 371.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.09712, allocations: 0 / 371.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1427/0.2398, allocations: 1.319 MB / 372.8 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2398, allocations: 0 / 372.8 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006492/0.2405, allocations: 339 kB / 373.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.356e-05/0.2406, allocations: 113.7 kB / 373.2 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.2406, allocations: 7.891 kB / 373.2 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.2408, allocations: 20.31 kB / 373.2 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.17e-05/0.2409, allocations: 29.48 kB / 373.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.2409, allocations: 6.141 kB / 373.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001264/0.241, allocations: 166.7 kB / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.241, allocations: 0 / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003727/0.2414, allocations: 86.61 kB / 373.5 MB, free: 17.54 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: 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.0007332/0.2422, allocations: 0.8648 MB / 374.4 MB, free: 16.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004841/0.2427, allocations: 295 kB / 374.7 MB, free: 16.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2427, allocations: 0 / 374.7 MB, free: 16.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002369/0.2429, allocations: 191.1 kB / 374.9 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.2432, allocations: 37.19 kB / 374.9 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.2464, allocations: 2.773 MB / 377.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001767/0.2466, allocations: 0.7577 MB / 378.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.2467, allocations: 29.38 kB / 378.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.219e-05/0.2468, allocations: 81.55 kB / 378.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2468, allocations: 1.375 kB / 378.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01609/0.2629, allocations: 5.054 MB / 383.6 MB, free: 14 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001132/0.263, allocations: 227.7 kB / 383.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/1.915, allocations: 0 / 383.8 MB, free: 13.75 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > 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