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.001533/0.001533, allocations: 113.2 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.001665/0.001665, allocations: 184.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.646/1.646, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001706/0.001707, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1183, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004869/0.1233, allocations: 2.832 MB / 377.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.125, allocations: 0.7717 MB / 378.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.1252, allocations: 7.938 kB / 378.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.1255, allocations: 51.5 kB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.1257, allocations: 91.19 kB / 378.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.1261, allocations: 99.81 kB / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000571/0.1267, allocations: 378.2 kB / 378.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003261/0.127, allocations: 123.2 kB / 379 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002057/0.1272, allocations: 139.5 kB / 379.1 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.1275, allocations: 151.3 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.765e-05/0.1275, allocations: 32 kB / 379.3 MB, free: 404 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.831e-05/0.1276, allocations: 28 kB / 379.3 MB, free: 376 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.207e-05/0.1277, allocations: 71.75 kB / 379.4 MB, free: 304 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001835/0.1279, allocations: 163.2 kB / 379.6 MB, free: 140 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2807/0.4086, allocations: 362.6 kB / 379.9 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.4087, allocations: 0 / 379.9 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.4087, allocations: 0 / 379.9 MB, free: 9.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.4087, allocations: 0 / 379.9 MB, free: 9.984 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.001149/0.4098, allocations: 0.6145 MB / 380.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.4099, allocations: 10.23 kB / 380.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.885e-05/0.41, allocations: 67.97 kB / 380.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.625e-05/0.4101, allocations: 34.84 kB / 380.6 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.4106, allocations: 272.2 kB / 380.9 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.4107, allocations: 76.83 kB / 381 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/0.4108, allocations: 26.94 kB / 381 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006241/0.4114, allocations: 302.4 kB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.4114, allocations: 1.656 kB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.771e-05/0.4115, allocations: 12.73 kB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.931e-05/0.4115, allocations: 7.375 kB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/0.4119, allocations: 188.5 kB / 381.5 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.4138, allocations: 1.126 MB / 382.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000377/0.4142, allocations: 153.3 kB / 382.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.4143, allocations: 78.08 kB / 382.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.4144, allocations: 5.875 kB / 382.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003186/0.4147, allocations: 163.7 kB / 383 MB, free: 8.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 3.266e-06/0.4147, allocations: 1 kB / 383 MB, free: 8.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001198/0.4159, allocations: 386.6 kB / 383.4 MB, free: 8.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/0.416, allocations: 108.8 kB / 383.5 MB, free: 8.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.4162, allocations: 226.2 kB / 383.7 MB, free: 8.012 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.4163, allocations: 35.8 kB / 383.8 MB, free: 7.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.4164, allocations: 179 kB / 383.9 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.926e-05/0.4164, allocations: 73.47 kB / 384 MB, free: 7.809 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.4166, allocations: 67.17 kB / 384.1 MB, free: 7.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.275e-05/0.4166, allocations: 334.7 kB / 384.4 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.4168, allocations: 65.16 kB / 384.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.417, allocations: 144.7 kB / 384.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002985/0.4173, allocations: 192.4 kB / 384.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4173, allocations: 1.438 kB / 384.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004428/0.4178, allocations: 268.9 kB / 385.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.4178, allocations: 7.297 kB / 385.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.4178, allocations: 1.531 kB / 385.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003203/0.4182, allocations: 62.67 kB / 385.1 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.4184, allocations: 49.77 kB / 385.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.4197, allocations: 1.566 MB / 386.7 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.42, allocations: 47.91 kB / 386.8 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/0.42, allocations: 12.08 kB / 386.8 MB, free: 5.727 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.0002225/0.4203, allocations: 149.4 kB / 387 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.4203, allocations: 26.7 kB / 387 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.925e-05/0.4204, allocations: 27.17 kB / 387 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.4204, allocations: 1.438 kB / 387 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4204, allocations: 4 kB / 387 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.4204, allocations: 2.328 kB / 387 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000438/0.4209, allocations: 327.8 kB / 387.3 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4209, allocations: 0 / 387.3 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/0.4211, allocations: 30.2 kB / 387.4 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.4213, allocations: 57 kB / 387.4 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/0.4214, allocations: 6.406 kB / 387.4 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.4224, allocations: 1.419 MB / 388.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4224, allocations: 0.9375 kB / 388.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007259/0.4231, allocations: 328.4 kB / 389.2 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.4233, allocations: 125.5 kB / 389.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.4233, allocations: 6.969 kB / 389.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.4235, allocations: 12.92 kB / 389.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.4237, allocations: 36.67 kB / 389.3 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.4237, allocations: 5.641 kB / 389.3 MB, free: 3.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.4239, allocations: 160.9 kB / 389.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4239, allocations: 0 / 389.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004801/0.4244, allocations: 87.12 kB / 389.6 MB, free: 3.531 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.001106/0.4255, allocations: 0.8684 MB / 390.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007258/0.4263, allocations: 291.7 kB / 390.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4263, allocations: 0.9688 kB / 390.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003349/0.4266, allocations: 202.3 kB / 390.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.427, allocations: 37.16 kB / 391 MB, free: 2.508 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004333/0.4314, allocations: 2.595 MB / 393.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.4317, allocations: 0.7629 MB / 394.3 MB, free: 0 / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.432, allocations: 26.84 kB / 394.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.4321, allocations: 78.66 kB / 394.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4321, allocations: 0 / 394.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05935/0.4915, allocations: 5.638 MB / 400.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/13.98, allocations: 17.86 kB / 400.1 MB, free: 14.96 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