Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 104.5 kB / 17.73 MB, free: 5.367 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.001674/0.001674, allocations: 191 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 55.94 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1146, allocations: 46.61 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004777/0.1195, allocations: 2.828 MB / 377.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.1213, allocations: 0.7873 MB / 378.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003505/0.1217, allocations: 4 kB / 378.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002578/0.122, allocations: 47.5 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.1223, allocations: 87.19 kB / 378.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000505/0.1228, allocations: 107.8 kB / 378.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005756/0.1234, allocations: 374.3 kB / 378.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000291/0.1237, allocations: 115.5 kB / 379 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002506/0.124, allocations: 135.6 kB / 379.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002672/0.1243, allocations: 155.3 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.691e-05/0.1243, allocations: 32 kB / 379.3 MB, free: 404 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.939e-05/0.1244, allocations: 32 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.1245, allocations: 71.75 kB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002194/0.1248, allocations: 163.2 kB / 379.6 MB, free: 136 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2665/0.3912, allocations: 360.1 kB / 379.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3913, allocations: 0 / 379.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3913, allocations: 0 / 379.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.914e-05/0.3913, allocations: 2.812 kB / 379.9 MB, free: 10.02 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.0009594/0.3923, allocations: 0.6115 MB / 380.5 MB, free: 9.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3923, allocations: 9.062 kB / 380.5 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.709e-05/0.3924, allocations: 67.28 kB / 380.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.367e-05/0.3925, allocations: 34.44 kB / 380.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.3928, allocations: 266 kB / 380.9 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.9e-05/0.3929, allocations: 79.7 kB / 381 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.3929, allocations: 26.44 kB / 381 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004781/0.3934, allocations: 299.3 kB / 381.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3934, allocations: 1.484 kB / 381.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.3935, allocations: 12.94 kB / 381.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3935, allocations: 10.44 kB / 381.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.3938, allocations: 189.2 kB / 381.5 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.3953, allocations: 1.123 MB / 382.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.3957, allocations: 162.3 kB / 382.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.3958, allocations: 78.73 kB / 382.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.3959, allocations: 1.938 kB / 382.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.3962, allocations: 156.4 kB / 383 MB, free: 8.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.3962, allocations: 6.016 kB / 383 MB, free: 8.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001095/0.3973, allocations: 380.2 kB / 383.4 MB, free: 8.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.3973, allocations: 106.1 kB / 383.5 MB, free: 8.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002041/0.3975, allocations: 229.7 kB / 383.7 MB, free: 8.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3976, allocations: 27.23 kB / 383.7 MB, free: 8.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.545e-05/0.3977, allocations: 186.6 kB / 383.9 MB, free: 7.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.3977, allocations: 59.64 kB / 384 MB, free: 7.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.162e-05/0.3978, allocations: 69.66 kB / 384 MB, free: 7.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.104e-05/0.3979, allocations: 336.4 kB / 384.4 MB, free: 7.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.398, allocations: 69.61 kB / 384.4 MB, free: 7.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.3982, allocations: 148 kB / 384.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.3985, allocations: 190.3 kB / 384.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3985, allocations: 0 / 384.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004107/0.3989, allocations: 265 kB / 385 MB, free: 7.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.3989, allocations: 6.531 kB / 385 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3989, allocations: 2.156 kB / 385 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002977/0.3992, allocations: 57.56 kB / 385.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.3995, allocations: 56.98 kB / 385.2 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/0.4005, allocations: 1.568 MB / 386.7 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.4007, allocations: 45.97 kB / 386.8 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.4008, allocations: 9.641 kB / 386.8 MB, free: 5.797 MB / 318.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.0001224/0.4009, allocations: 148.6 kB / 386.9 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.284e-05/0.4009, allocations: 32.03 kB / 387 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.043e-05/0.401, allocations: 25.27 kB / 387 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.401, allocations: 2.375 kB / 387 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.401, allocations: 0 / 387 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.401, allocations: 4.562 kB / 387 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/0.4013, allocations: 327 kB / 387.3 MB, free: 5.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4014, allocations: 3.375 kB / 387.3 MB, free: 5.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.4015, allocations: 30.59 kB / 387.3 MB, free: 5.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001755/0.4017, allocations: 52.45 kB / 387.4 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.4017, allocations: 3.391 kB / 387.4 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008284/0.4026, allocations: 1.422 MB / 388.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4026, allocations: 0 / 388.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005894/0.4032, allocations: 334.7 kB / 389.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.661e-05/0.4033, allocations: 112.2 kB / 389.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/0.4033, allocations: 7.469 kB / 389.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.4035, allocations: 21.45 kB / 389.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.874e-05/0.4036, allocations: 27.08 kB / 389.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.4036, allocations: 5.844 kB / 389.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.4037, allocations: 161.6 kB / 389.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4037, allocations: 1.031 kB / 389.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003716/0.4041, allocations: 85.75 kB / 389.6 MB, free: 3.586 MB / 318.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.0008111/0.4049, allocations: 0.8726 MB / 390.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004858/0.4054, allocations: 294.9 kB / 390.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4054, allocations: 0 / 390.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.4057, allocations: 199 kB / 390.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.406, allocations: 31.59 kB / 390.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/0.4092, allocations: 2.6 MB / 393.5 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.4095, allocations: 0.7579 MB / 394.3 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.4096, allocations: 24.44 kB / 394.3 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.4097, allocations: 80.45 kB / 394.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4097, allocations: 0 / 394.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02656/0.4363, allocations: 5.737 MB / 400.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.18, allocations: 12.59 kB / 400.1 MB, free: 14.95 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches