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.001129/0.001129, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.00109/0.00109, allocations: 192 kB / 18.51 MB, free: 4.508 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.829/1.829, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001244/0.001244, allocations: 47.92 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1162, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.006444/0.1227, allocations: 2.774 MB / 330.2 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.1249, allocations: 0.737 MB / 330.9 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003342/0.1253, allocations: 8 kB / 330.9 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002442/0.1256, allocations: 71.3 kB / 331 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004279/0.126, allocations: 95.11 kB / 331.1 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005914/0.1266, allocations: 123.8 kB / 331.2 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007304/0.1274, allocations: 430.9 kB / 331.6 MB, free: 124 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005628/0.128, allocations: 224.9 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003632/0.1283, allocations: 183.3 kB / 332 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/0.1288, allocations: 199.1 kB / 332.2 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.1289, allocations: 48 kB / 332.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.1291, allocations: 44 kB / 332.3 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.1292, allocations: 95.75 kB / 332.4 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003166/0.1295, allocations: 215 kB / 332.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006474/0.1302, allocations: 0.4907 MB / 333.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.1302, allocations: 0 / 333.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1302, allocations: 0 / 333.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.423e-05/0.1303, allocations: 0 / 333.1 MB, free: 14.63 MB / 286.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.001714/0.132, allocations: 0.6903 MB / 333.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.132, allocations: 8.031 kB / 333.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001385/0.1322, allocations: 82.72 kB / 333.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.1323, allocations: 40.47 kB / 333.9 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004539/0.1328, allocations: 280.4 kB / 334.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.134e-05/0.1329, allocations: 33.38 kB / 334.2 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.133, allocations: 36.38 kB / 334.2 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.1341, allocations: 459.4 kB / 334.7 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.1341, allocations: 0 / 334.7 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.329e-05/0.1342, allocations: 20 kB / 334.7 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.1342, allocations: 12 kB / 334.7 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008161/0.135, allocations: 275.9 kB / 335 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/0.1378, allocations: 1.318 MB / 336.3 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/0.1385, allocations: 238.7 kB / 336.5 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005131/0.139, allocations: 196.8 kB / 336.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.139, allocations: 0 / 336.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.821e-05/0.1391, allocations: 46.5 kB / 336.8 MB, free: 10.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.884e-06/0.1391, allocations: 0 / 336.8 MB, free: 10.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001978/0.1411, allocations: 0.5424 MB / 337.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/0.1412, allocations: 235.3 kB / 337.5 MB, free: 9.832 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.1415, allocations: 206.8 kB / 337.7 MB, free: 9.621 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.87e-05/0.1416, allocations: 33.7 kB / 337.8 MB, free: 9.582 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.1418, allocations: 203.9 kB / 338 MB, free: 9.379 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.1419, allocations: 106.4 kB / 338.1 MB, free: 9.273 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/0.142, allocations: 57.7 kB / 338.1 MB, free: 9.211 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1422, allocations: 342.8 kB / 338.5 MB, free: 8.867 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.1425, allocations: 71.97 kB / 338.5 MB, free: 8.797 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/0.1429, allocations: 156.4 kB / 338.7 MB, free: 8.613 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.1444, allocations: 369.4 kB / 339.1 MB, free: 8.246 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1444, allocations: 0 / 339.1 MB, free: 8.246 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000801/0.1452, allocations: 277 kB / 339.3 MB, free: 7.969 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.1452, allocations: 8.062 kB / 339.3 MB, free: 7.961 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1453, allocations: 4 kB / 339.3 MB, free: 7.957 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.1453, allocations: 0 / 339.3 MB, free: 7.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005405/0.1459, allocations: 79.89 kB / 339.4 MB, free: 7.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.1459, allocations: 80 / 339.4 MB, free: 7.879 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003221/0.1462, allocations: 39.67 kB / 339.5 MB, free: 7.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/0.1463, allocations: 11.98 kB / 339.5 MB, free: 7.828 MB / 286.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.0004015/0.1467, allocations: 153.8 kB / 339.6 MB, free: 7.668 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.534e-05/0.1468, allocations: 31.66 kB / 339.7 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.337e-05/0.1469, allocations: 34.64 kB / 339.7 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.1469, allocations: 0 / 339.7 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.379e-05/0.1469, allocations: 7.938 kB / 339.7 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.657e-06/0.147, allocations: 3.984 kB / 339.7 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/0.1487, allocations: 0.7672 MB / 340.5 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1487, allocations: 0 / 340.5 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.1491, allocations: 55.91 kB / 340.5 MB, free: 6.707 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000476/0.1496, allocations: 96.73 kB / 340.6 MB, free: 6.609 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.1497, allocations: 4 kB / 340.6 MB, free: 6.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003151/0.1528, allocations: 1.977 MB / 342.6 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1529, allocations: 0 / 342.6 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.1542, allocations: 0.5021 MB / 343.1 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.1543, allocations: 104.8 kB / 343.2 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.169e-05/0.1544, allocations: 12.12 kB / 343.2 MB, free: 3.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002985/0.1547, allocations: 11.98 kB / 343.2 MB, free: 3.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-05/0.1548, allocations: 23.97 kB / 343.2 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.1549, allocations: 11.94 kB / 343.3 MB, free: 3.785 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002157/0.1551, allocations: 152.4 kB / 343.4 MB, free: 3.637 MB / 286.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.1551, allocations: 3.938 kB / 343.4 MB, free: 3.633 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006831/0.1558, allocations: 99.69 kB / 343.5 MB, free: 3.535 MB / 286.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.001705/0.1575, allocations: 1.058 MB / 344.6 MB, free: 2.441 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006937/0.1583, allocations: 227.6 kB / 344.8 MB, free: 2.219 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.1583, allocations: 4.125 kB / 344.8 MB, free: 2.215 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.1589, allocations: 274.5 kB / 345.1 MB, free: 1.934 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/0.1594, allocations: 20 kB / 345.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005847/0.1652, allocations: 2.876 MB / 348 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006551/0.1659, allocations: 0.7831 MB / 348.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.1661, allocations: 29.92 kB / 348.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.1664, allocations: 99.41 kB / 348.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.174e-06/0.1664, allocations: 0 / 348.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07177/0.2382, allocations: 5.66 MB / 354.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.24, allocations: 0 / 354.5 MB, free: 8.285 MB / 302.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