Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.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.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",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.001587/0.001587, allocations: 103.2 kB / 17.58 MB, free: 5.422 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.002041/0.002041, allocations: 187.9 kB / 18.5 MB, free: 4.516 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.461/1.461, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001204/0.001204, allocations: 52.14 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1121, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.006103/0.1182, allocations: 4.038 MB / 331.4 MB, free: 328 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.1205, allocations: 0.9121 MB / 332.3 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003582/0.1209, allocations: 11.94 kB / 332.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002506/0.1212, allocations: 91.08 kB / 332.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003857/0.1216, allocations: 182.4 kB / 332.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.122, allocations: 143.7 kB / 332.8 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006849/0.1227, allocations: 0.6693 MB / 333.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003639/0.123, allocations: 207 kB / 333.6 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003022/0.1234, allocations: 255 kB / 333.9 MB, free: 13.85 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003565/0.1237, allocations: 290.7 kB / 334.2 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.049e-05/0.1238, allocations: 56 kB / 334.2 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.568e-05/0.1239, allocations: 56 kB / 334.3 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.124, allocations: 127.5 kB / 334.4 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002673/0.1243, allocations: 306.5 kB / 334.7 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006493/0.125, allocations: 0.6307 MB / 335.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.125, allocations: 7.938 kB / 335.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.125, allocations: 0 / 335.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.125, allocations: 0 / 335.3 MB, free: 12.39 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001469/0.1265, allocations: 0.8611 MB / 336.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.1266, allocations: 12.03 kB / 336.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.1267, allocations: 103.8 kB / 336.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.1268, allocations: 68.19 kB / 336.4 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005011/0.1273, allocations: 367.6 kB / 336.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.355e-05/0.1274, allocations: 37.69 kB / 336.8 MB, free: 10.85 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.549e-05/0.1275, allocations: 56.38 kB / 336.8 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000784/0.1283, allocations: 0.5034 MB / 337.3 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.1283, allocations: 3.984 kB / 337.3 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.681e-05/0.1283, allocations: 20 kB / 337.3 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1284, allocations: 12 kB / 337.4 MB, free: 10.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006017/0.129, allocations: 336.7 kB / 337.7 MB, free: 9.914 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002935/0.1319, allocations: 1.729 MB / 339.4 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.1324, allocations: 265.1 kB / 339.7 MB, free: 7.805 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.1327, allocations: 142.2 kB / 339.8 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.1327, allocations: 8 kB / 339.8 MB, free: 7.652 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.871e-05/0.1328, allocations: 50.34 kB / 339.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.575e-06/0.1328, allocations: 0 / 339.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001981/0.1348, allocations: 0.9535 MB / 340.8 MB, free: 6.562 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.1349, allocations: 81.11 kB / 340.9 MB, free: 6.465 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004537/0.1353, allocations: 381.6 kB / 341.3 MB, free: 6.082 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.1354, allocations: 37.7 kB / 341.3 MB, free: 6.039 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.1356, allocations: 291.3 kB / 341.6 MB, free: 5.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.232e-05/0.1357, allocations: 110.4 kB / 341.7 MB, free: 5.641 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.1358, allocations: 78.05 kB / 341.8 MB, free: 5.559 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.136, allocations: 354.7 kB / 342.1 MB, free: 5.203 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.1362, allocations: 104.8 kB / 342.2 MB, free: 5.102 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002624/0.1364, allocations: 194.6 kB / 342.4 MB, free: 4.875 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004877/0.1369, allocations: 298.1 kB / 342.7 MB, free: 4.547 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.137, allocations: 0 / 342.7 MB, free: 4.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008341/0.1378, allocations: 454.3 kB / 343.2 MB, free: 4.09 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.1378, allocations: 8 kB / 343.2 MB, free: 4.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.1379, allocations: 4 kB / 343.2 MB, free: 4.078 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003671/0.1382, allocations: 89.84 kB / 343.3 MB, free: 3.984 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.1386, allocations: 79.89 kB / 343.3 MB, free: 3.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.1413, allocations: 3.135 MB / 346.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.1417, allocations: 16 kB / 346.5 MB, free: 492 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.1417, allocations: 16 kB / 346.5 MB, free: 476 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002242/0.1419, allocations: 165.8 kB / 346.7 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.8e-05/0.142, allocations: 51.38 kB / 346.7 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.4e-05/0.1421, allocations: 43.45 kB / 346.8 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.1421, allocations: 11.92 kB / 346.8 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.1421, allocations: 4 kB / 346.8 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1422, allocations: 0 / 346.8 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001346/0.1435, allocations: 0.9472 MB / 347.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1435, allocations: 0 / 347.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.1437, allocations: 43.97 kB / 347.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002628/0.144, allocations: 85.58 kB / 347.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.144, allocations: 7.984 kB / 347.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002445/0.1465, allocations: 3.127 MB / 351 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1465, allocations: 3.938 kB / 351 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009482/0.1475, allocations: 0.6175 MB / 351.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.1476, allocations: 116.6 kB / 351.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.1477, allocations: 8 kB / 351.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.148, allocations: 27.97 kB / 351.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.595e-05/0.1481, allocations: 24.06 kB / 351.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.1481, allocations: 19.98 kB / 351.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002945/0.1484, allocations: 271.2 kB / 352.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1484, allocations: 3.938 kB / 352.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006144/0.149, allocations: 120 kB / 352.2 MB, free: 10.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001303/0.1504, allocations: 1.162 MB / 353.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009505/0.1513, allocations: 0.5284 MB / 353.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.1513, allocations: 4 kB / 353.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005768/0.1519, allocations: 385.7 kB / 354.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006005/0.1525, allocations: 61.61 kB / 354.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005773/0.1583, allocations: 4.28 MB / 358.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.1588, allocations: 0.847 MB / 359.4 MB, free: 2.855 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002078/0.159, allocations: 43.28 kB / 359.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.1592, allocations: 171.4 kB / 359.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1592, allocations: 0 / 359.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04733/0.2065, allocations: 8.777 MB / 368.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.307/9.514, allocations: 15.75 kB / 368.4 MB, free: 9.785 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches