Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.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.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",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.001097/0.001097, 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.001254/0.001254, 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.301/1.301, 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.001243/0.001243, allocations: 51.92 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07838/0.07964, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer): time 0.006793/0.08646, allocations: 5.873 MB / 333.3 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.08991, allocations: 1.901 MB / 335.2 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000627/0.09061, allocations: 20 kB / 335.2 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003658/0.09428, allocations: 1.622 MB / 336.8 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002375/0.09669, allocations: 0.8355 MB / 337.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009782/0.09768, allocations: 283.4 kB / 337.9 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001883/0.09958, allocations: 0.8834 MB / 338.8 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001885/0.1015, allocations: 0.8836 MB / 339.7 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000768/0.1023, allocations: 394.5 kB / 340.1 MB, free: 7.609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008668/0.1031, allocations: 0.5292 MB / 340.6 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001909/0.1034, allocations: 84 kB / 340.7 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006428/0.104, allocations: 247.8 kB / 340.9 MB, free: 6.754 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.1042, allocations: 199.3 kB / 341.1 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000511/0.1047, allocations: 469.6 kB / 341.6 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.1062, allocations: 1.222 MB / 342.8 MB, free: 4.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1062, allocations: 0 / 342.8 MB, free: 4.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1063, allocations: 3.938 kB / 342.8 MB, free: 4.867 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.093e-05/0.1063, allocations: 0 / 342.8 MB, free: 4.867 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.004185/0.1105, allocations: 1.421 MB / 344.2 MB, free: 3.395 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.1106, allocations: 8.031 kB / 344.2 MB, free: 3.387 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000287/0.1109, allocations: 165 kB / 344.4 MB, free: 3.215 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007103/0.118, allocations: 0.9637 MB / 345.4 MB, free: 2.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008979/0.1189, allocations: 458.9 kB / 345.8 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.095e-05/0.119, allocations: 82.55 kB / 345.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002093/0.1192, allocations: 104.4 kB / 346 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.1212, allocations: 1.129 MB / 347.1 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.935e-05/0.1212, allocations: 3.984 kB / 347.1 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.256e-05/0.1213, allocations: 47.94 kB / 347.2 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.1214, allocations: 28 kB / 347.2 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002066/0.1234, allocations: 1.132 MB / 348.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005499/0.1289, allocations: 3.949 MB / 352.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003394/0.1323, allocations: 3.763 MB / 356 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004861/0.1328, allocations: 324.6 kB / 356.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.94e-05/0.133, allocations: 89.66 kB / 356.4 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.133, allocations: 51.06 kB / 356.5 MB, free: 6.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=71): time 3.576e-06/0.133, allocations: 3.984 kB / 356.5 MB, free: 6.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.001436/0.1345, allocations: 0.7602 MB / 357.3 MB, free: 5.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.1345, allocations: 111.4 kB / 357.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003258/0.1349, allocations: 328.2 kB / 357.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.1349, allocations: 37.7 kB / 357.7 MB, free: 4.809 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002408/0.1352, allocations: 445.9 kB / 358.2 MB, free: 4.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.1353, allocations: 244.5 kB / 358.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.1356, allocations: 174.5 kB / 358.6 MB, free: 3.945 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1357, allocations: 358.8 kB / 358.9 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004447/0.1362, allocations: 241.9 kB / 359.2 MB, free: 3.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000633/0.1368, allocations: 0.5591 MB / 359.7 MB, free: 2.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.138, allocations: 0.8754 MB / 360.6 MB, free: 1.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.138, allocations: 4 kB / 360.6 MB, free: 1.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001473/0.1395, allocations: 0.9032 MB / 361.5 MB, free: 0.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.1395, allocations: 12.16 kB / 361.5 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.1395, allocations: 12 kB / 361.5 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.1395, allocations: 16 kB / 361.5 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007834/0.1403, allocations: 239.6 kB / 361.8 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.281e-05/0.1404, allocations: 19.94 kB / 361.8 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004853/0.1409, allocations: 98.95 kB / 361.9 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.993e-05/0.1409, allocations: 44 kB / 361.9 MB, free: 280 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (122): * Single equations (assignments): 122 * 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.0002821/0.1412, allocations: 249.4 kB / 362.2 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.1414, allocations: 55.36 kB / 362.2 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001221/0.1426, allocations: 0.6784 MB / 362.9 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.1426, allocations: 8 kB / 362.9 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.1426, allocations: 4 kB / 362.9 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.078e-06/0.1427, allocations: 3.984 kB / 362.9 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.1451, allocations: 1.59 MB / 364.5 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.1451, allocations: 3.984 kB / 364.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/0.1457, allocations: 143.8 kB / 364.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.1457, allocations: 4 kB / 364.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.1458, allocations: 19.98 kB / 364.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1458, allocations: 4 kB / 364.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1458, allocations: 0 / 364.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.1474, allocations: 1.162 MB / 365.8 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.1475, allocations: 136.3 kB / 366 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.026e-05/0.1476, allocations: 16 kB / 366 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.148, allocations: 24.05 kB / 366 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/0.1481, allocations: 48.59 kB / 366.1 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.1481, allocations: 23.94 kB / 366.1 MB, free: 12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.1483, allocations: 215.1 kB / 366.3 MB, free: 11.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1483, allocations: 0 / 366.3 MB, free: 11.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007697/0.1491, allocations: 243.1 kB / 366.5 MB, free: 11.55 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (78): * Single equations (assignments): 78 * 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 Backend phase and start with SimCode phase: time 0.001973/0.1511, allocations: 1.757 MB / 368.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.1526, allocations: 0.7208 MB / 369 MB, free: 9.047 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1526, allocations: 0 / 369 MB, free: 9.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004645/0.1531, allocations: 321.1 kB / 369.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005655/0.1536, allocations: 53.16 kB / 369.4 MB, free: 8.684 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007018/0.1607, allocations: 5.59 MB / 375 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.1612, allocations: 0.9241 MB / 375.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003907/0.1616, allocations: 92.89 kB / 376 MB, free: 1.672 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003505/0.162, allocations: 287.3 kB / 376.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.162, allocations: 0 / 376.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2679/0.4298, allocations: 10.28 MB / 386.5 MB, free: 52.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.706/9.136, allocations: 5.641 kB / 386.5 MB, free: 52.5 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches