Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.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.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors",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.001934/0.001934, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.002245/0.002245, allocations: 187 kB / 18.66 MB, free: 4.387 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.392/1.392, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001642/0.001642, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08792/0.08957, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003889/0.09351, allocations: 2.782 MB / 377.4 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.09493, allocations: 0.7485 MB / 378.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.09509, allocations: 4 kB / 378.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.09525, allocations: 63.36 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.09546, allocations: 87.12 kB / 378.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003924/0.09586, allocations: 131.8 kB / 378.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004981/0.09637, allocations: 434.8 kB / 378.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003594/0.09674, allocations: 228.8 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.097, allocations: 179.4 kB / 379.3 MB, free: 420 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/0.09726, allocations: 195.2 kB / 379.5 MB, free: 224 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.062e-05/0.09734, allocations: 44 kB / 379.5 MB, free: 180 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.64e-05/0.09742, allocations: 51.94 kB / 379.6 MB, free: 128 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.769e-05/0.09751, allocations: 99.72 kB / 379.7 MB, free: 28 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1585/0.256, allocations: 207.9 kB / 379.9 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006355/0.2567, allocations: 0.4917 MB / 380.4 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2567, allocations: 0 / 380.4 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2567, allocations: 0 / 380.4 MB, free: 9.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.2567, allocations: 1.312 kB / 380.4 MB, free: 9.348 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001087/0.2578, allocations: 0.6917 MB / 381 MB, free: 8.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.2579, allocations: 12.72 kB / 381.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.914e-05/0.258, allocations: 82.88 kB / 381.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.55e-05/0.2581, allocations: 48.72 kB / 381.2 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.2583, allocations: 284.4 kB / 381.5 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.2584, allocations: 30.38 kB / 381.5 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.3e-05/0.2584, allocations: 44.2 kB / 381.5 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006781/0.2591, allocations: 459.5 kB / 382 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.2591, allocations: 2.875 kB / 382 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.2592, allocations: 17.38 kB / 382 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.2592, allocations: 9.625 kB / 382 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005925/0.2598, allocations: 287.5 kB / 382.3 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.2618, allocations: 1.289 MB / 383.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00042/0.2622, allocations: 239.1 kB / 383.8 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000354/0.2626, allocations: 197 kB / 384 MB, free: 7.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.2626, allocations: 3.375 kB / 384 MB, free: 7.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.2627, allocations: 38.19 kB / 384.1 MB, free: 7.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.974e-06/0.2627, allocations: 0 / 384.1 MB, free: 7.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001346/0.264, allocations: 0.5499 MB / 384.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.2641, allocations: 236.7 kB / 384.8 MB, free: 7.391 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.2643, allocations: 205.8 kB / 385 MB, free: 7.289 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.2643, allocations: 31.83 kB / 385.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.861e-05/0.2644, allocations: 207.3 kB / 385.3 MB, free: 7.117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.637e-05/0.2645, allocations: 108 kB / 385.4 MB, free: 7.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-05/0.2646, allocations: 57.17 kB / 385.4 MB, free: 7.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.442e-05/0.2646, allocations: 338.8 kB / 385.8 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.2648, allocations: 78.86 kB / 385.8 MB, free: 6.711 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.265, allocations: 154.5 kB / 386 MB, free: 6.629 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008213/0.2658, allocations: 364.9 kB / 386.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2658, allocations: 0 / 386.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004217/0.2662, allocations: 282.2 kB / 386.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.2663, allocations: 10.42 kB / 386.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.2663, allocations: 4.969 kB / 386.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2663, allocations: 2.219 kB / 386.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.2666, allocations: 82.17 kB / 386.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.2667, allocations: 2.781 kB / 386.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.2669, allocations: 34.41 kB / 386.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.2669, allocations: 12.39 kB / 386.8 MB, free: 6.426 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002642/0.2672, allocations: 161.3 kB / 386.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.07e-05/0.2672, allocations: 28.67 kB / 387 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.243e-05/0.2673, allocations: 28.77 kB / 387 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2673, allocations: 3.344 kB / 387 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.2673, allocations: 2.156 kB / 387 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2673, allocations: 4.922 kB / 387 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.2683, allocations: 0.7639 MB / 387.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2683, allocations: 1.094 kB / 387.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.2686, allocations: 54.09 kB / 387.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002806/0.2689, allocations: 91.83 kB / 387.9 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.2689, allocations: 7.641 kB / 387.9 MB, free: 5.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.2705, allocations: 1.979 MB / 389.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.2705, allocations: 5.672 kB / 389.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007249/0.2713, allocations: 0.5007 MB / 390.4 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.606e-05/0.2713, allocations: 107 kB / 390.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.2714, allocations: 9.5 kB / 390.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.2716, allocations: 15.27 kB / 390.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.065e-05/0.2716, allocations: 24.11 kB / 390.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.2717, allocations: 5.719 kB / 390.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.2718, allocations: 155 kB / 390.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2718, allocations: 1.062 kB / 390.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004249/0.2722, allocations: 113.8 kB / 390.8 MB, free: 3.461 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008915/0.2731, allocations: 1.046 MB / 391.9 MB, free: 2.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004332/0.2736, allocations: 208.1 kB / 392.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2736, allocations: 1.156 kB / 392.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004065/0.274, allocations: 280.8 kB / 392.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.2743, allocations: 32.38 kB / 392.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003025/0.2774, allocations: 2.869 MB / 395.2 MB, free: 428 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.2778, allocations: 0.7883 MB / 396 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.2779, allocations: 26 kB / 396.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.278, allocations: 99.09 kB / 396.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of SimCode: time 1.092e-06/0.278, allocations: 0 / 396.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.3135, allocations: 5.794 MB / 401.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.38, allocations: 1.188 kB / 401.9 MB, free: 14.34 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CoupledInductors/CoupledInductors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CoupledInductors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches