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.00137/0.00137, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001479/0.001479, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.354/1.354, 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.001303/0.001303, allocations: 47.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07991/0.08122, allocations: 46.63 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003998/0.08526, allocations: 2.782 MB / 377.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.08688, allocations: 0.7446 MB / 378.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003373/0.08725, allocations: 4 kB / 378.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002314/0.08754, allocations: 71.34 kB / 378.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003804/0.08794, allocations: 91.12 kB / 378.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005128/0.08846, allocations: 119.8 kB / 378.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006349/0.08911, allocations: 438.8 kB / 378.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.08955, allocations: 232.8 kB / 379.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.08988, allocations: 179.4 kB / 379.3 MB, free: 428 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003196/0.09021, allocations: 199.2 kB / 379.5 MB, free: 228 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.09032, allocations: 44 kB / 379.5 MB, free: 184 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.635e-05/0.09042, allocations: 47.94 kB / 379.6 MB, free: 136 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.09053, allocations: 99.72 kB / 379.7 MB, free: 36 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1713/0.2618, allocations: 211.8 kB / 379.9 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000721/0.2626, allocations: 500 kB / 380.4 MB, free: 9.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2626, allocations: 1.375 kB / 380.4 MB, free: 9.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.2626, allocations: 2.062 kB / 380.4 MB, free: 9.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.331e-05/0.2626, allocations: 3.938 kB / 380.4 MB, free: 9.801 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.00129/0.2639, allocations: 0.6921 MB / 381.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.264, allocations: 10.41 kB / 381.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.2641, allocations: 81.02 kB / 381.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.2642, allocations: 47.95 kB / 381.2 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.2645, allocations: 283.4 kB / 381.5 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.2646, allocations: 30.56 kB / 381.5 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-05/0.2646, allocations: 50.05 kB / 381.5 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007114/0.2654, allocations: 450.6 kB / 382 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.2654, allocations: 3.188 kB / 382 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.2654, allocations: 18.09 kB / 382 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.2654, allocations: 11 kB / 382 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000578/0.266, allocations: 282.5 kB / 382.3 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.2679, allocations: 1.293 MB / 383.6 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004357/0.2684, allocations: 236.3 kB / 383.8 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.2688, allocations: 192.7 kB / 384 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.2688, allocations: 6 kB / 384 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.2688, allocations: 40.25 kB / 384.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.472e-06/0.2689, allocations: 0 / 384.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001363/0.2702, allocations: 0.5482 MB / 384.6 MB, free: 8.117 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.2703, allocations: 240.9 kB / 384.8 MB, free: 7.832 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.2705, allocations: 208 kB / 385 MB, free: 7.695 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.2705, allocations: 31.89 kB / 385.1 MB, free: 7.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.961e-05/0.2706, allocations: 207 kB / 385.3 MB, free: 7.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.466e-05/0.2707, allocations: 107 kB / 385.4 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.547e-05/0.2708, allocations: 63.45 kB / 385.4 MB, free: 7.371 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.592e-05/0.2708, allocations: 335.8 kB / 385.8 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.271, allocations: 79.8 kB / 385.8 MB, free: 7.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.2712, allocations: 153.6 kB / 386 MB, free: 6.906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008366/0.272, allocations: 362 kB / 386.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.272, allocations: 0 / 386.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004523/0.2725, allocations: 290.5 kB / 386.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.2725, allocations: 6.609 kB / 386.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.2725, allocations: 1.25 kB / 386.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2726, allocations: 2.25 kB / 386.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003348/0.2729, allocations: 79.09 kB / 386.7 MB, free: 6.625 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.2729, allocations: 2.312 kB / 386.7 MB, free: 6.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001946/0.2731, allocations: 31.28 kB / 386.8 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.2731, allocations: 12.86 kB / 386.8 MB, free: 6.602 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.000263/0.2734, allocations: 161 kB / 386.9 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.2735, allocations: 30.09 kB / 387 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.889e-05/0.2735, allocations: 29.28 kB / 387 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.2736, allocations: 3.5 kB / 387 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.2736, allocations: 4.953 kB / 387 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2736, allocations: 1.031 kB / 387 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.2746, allocations: 0.7677 MB / 387.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.2746, allocations: 0 / 387.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/0.2749, allocations: 52.17 kB / 387.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002823/0.2752, allocations: 93.17 kB / 387.9 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.2752, allocations: 7.406 kB / 387.9 MB, free: 5.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.2768, allocations: 1.979 MB / 389.9 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2769, allocations: 3.375 kB / 389.9 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007303/0.2776, allocations: 0.5017 MB / 390.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.862e-05/0.2777, allocations: 106 kB / 390.5 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.63e-05/0.2777, allocations: 7.344 kB / 390.5 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.2779, allocations: 16.09 kB / 390.5 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.526e-05/0.278, allocations: 25.11 kB / 390.5 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.278, allocations: 4.594 kB / 390.5 MB, free: 3.777 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001235/0.2781, allocations: 159.2 kB / 390.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2781, allocations: 3.938 kB / 390.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004086/0.2785, allocations: 108.9 kB / 390.8 MB, free: 3.637 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.0009176/0.2795, allocations: 1.044 MB / 391.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004552/0.2799, allocations: 207.5 kB / 392.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.2799, allocations: 5.125 kB / 392.1 MB, free: 2.758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004631/0.2804, allocations: 281.8 kB / 392.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.2808, allocations: 28.67 kB / 392.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/0.2849, allocations: 2.871 MB / 395.2 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/0.2853, allocations: 0.7901 MB / 396 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.2855, allocations: 27.19 kB / 396.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.2857, allocations: 101.7 kB / 396.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2857, allocations: 1.094 kB / 396.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03107/0.3168, allocations: 5.793 MB / 401.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.99/10.31, allocations: 6.219 kB / 402 MB, free: 14.46 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