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.001554/0.001554, allocations: 112.4 kB / 17.73 MB, free: 5.355 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.001863/0.001863, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.614/1.614, 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.001466/0.001466, allocations: 59.86 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1186, allocations: 46.6 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005081/0.1237, allocations: 2.828 MB / 377.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.1257, allocations: 0.7795 MB / 378.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004114/0.1261, allocations: 8 kB / 378.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002906/0.1265, allocations: 47.5 kB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003884/0.1269, allocations: 91.19 kB / 378.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005681/0.1275, allocations: 107.7 kB / 378.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005882/0.1281, allocations: 370.3 kB / 378.9 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003195/0.1284, allocations: 131.2 kB / 379 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.1287, allocations: 131.6 kB / 379.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002833/0.129, allocations: 159.3 kB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.396e-05/0.1291, allocations: 28 kB / 379.3 MB, free: 404 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.922e-05/0.1291, allocations: 32 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.814e-05/0.1292, allocations: 71.69 kB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.1294, allocations: 163.3 kB / 379.6 MB, free: 136 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2875/0.4169, allocations: 361.6 kB / 379.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.109e-05/0.417, allocations: 0 / 379.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.417, allocations: 0 / 379.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.404e-05/0.4171, allocations: 1.281 kB / 379.9 MB, free: 10.05 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.001939/0.419, allocations: 0.6161 MB / 380.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.929e-05/0.4191, allocations: 9.625 kB / 380.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.4192, allocations: 67.19 kB / 380.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.4194, allocations: 35.22 kB / 380.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004614/0.4198, allocations: 268.6 kB / 380.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.782e-05/0.4199, allocations: 77.38 kB / 381 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.578e-05/0.42, allocations: 29.97 kB / 381 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000592/0.4206, allocations: 299.9 kB / 381.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.4206, allocations: 0 / 381.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.4207, allocations: 14.84 kB / 381.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.4207, allocations: 10.47 kB / 381.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003838/0.4211, allocations: 189.9 kB / 381.5 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.4231, allocations: 1.121 MB / 382.6 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004392/0.4236, allocations: 156.6 kB / 382.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.4238, allocations: 78.33 kB / 382.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.4238, allocations: 2.75 kB / 382.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003975/0.4242, allocations: 158 kB / 383 MB, free: 8.457 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.004e-06/0.4243, allocations: 0.5938 kB / 383 MB, free: 8.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001377/0.4256, allocations: 386.1 kB / 383.4 MB, free: 8.305 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.4257, allocations: 108.6 kB / 383.5 MB, free: 8.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/0.426, allocations: 226 kB / 383.7 MB, free: 8.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.426, allocations: 35.14 kB / 383.8 MB, free: 8.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.4261, allocations: 185.8 kB / 383.9 MB, free: 7.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/0.4262, allocations: 70.69 kB / 384 MB, free: 7.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.271e-05/0.4263, allocations: 67.58 kB / 384.1 MB, free: 7.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.364e-05/0.4264, allocations: 338 kB / 384.4 MB, free: 7.531 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.4265, allocations: 64.75 kB / 384.5 MB, free: 7.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.4267, allocations: 146.9 kB / 384.6 MB, free: 7.445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.427, allocations: 191.2 kB / 384.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.427, allocations: 1.375 kB / 384.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000475/0.4275, allocations: 271.2 kB / 385.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.4275, allocations: 6.281 kB / 385.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.4275, allocations: 1.984 kB / 385.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/0.4278, allocations: 61.72 kB / 385.1 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.4281, allocations: 49.55 kB / 385.2 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.4294, allocations: 1.571 MB / 386.8 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.4296, allocations: 42.72 kB / 386.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.4296, allocations: 12.8 kB / 386.8 MB, free: 5.789 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.0001537/0.4298, allocations: 151 kB / 387 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.151e-05/0.4299, allocations: 23.17 kB / 387 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.588e-05/0.4299, allocations: 28.16 kB / 387 MB, free: 5.648 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.4299, allocations: 3.062 kB / 387 MB, free: 5.648 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4299, allocations: 0 / 387 MB, free: 5.648 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.43, allocations: 5.922 kB / 387 MB, free: 5.645 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003835/0.4303, allocations: 323 kB / 387.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.4304, allocations: 0.75 kB / 387.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.4305, allocations: 31.55 kB / 387.4 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001918/0.4307, allocations: 54.88 kB / 387.4 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.4308, allocations: 14.98 kB / 387.4 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009545/0.4317, allocations: 1.417 MB / 388.8 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4317, allocations: 3.812 kB / 388.9 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007125/0.4325, allocations: 333.6 kB / 389.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.4326, allocations: 120 kB / 389.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.932e-05/0.4327, allocations: 6.875 kB / 389.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.4328, allocations: 17.42 kB / 389.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.433, allocations: 29.58 kB / 389.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.433, allocations: 8.812 kB / 389.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002036/0.4332, allocations: 161.2 kB / 389.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4332, allocations: 0 / 389.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004357/0.4337, allocations: 87.5 kB / 389.6 MB, free: 3.57 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.001028/0.4347, allocations: 0.8612 MB / 390.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006458/0.4353, allocations: 293.2 kB / 390.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4354, allocations: 1.031 kB / 390.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.4357, allocations: 195.7 kB / 390.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.436, allocations: 35.55 kB / 391 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00378/0.4398, allocations: 2.595 MB / 393.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.4401, allocations: 0.7623 MB / 394.3 MB, free: 56 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.4402, allocations: 28.34 kB / 394.4 MB, free: 48 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.4404, allocations: 82.05 kB / 394.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4404, allocations: 3.938 kB / 394.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03202/0.4724, allocations: 5.639 MB / 400.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.13, allocations: 19.44 kB / 400.1 MB, free: 15.01 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 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.csv","/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