Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001164/0.001164, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 62.88 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08425/0.08546, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.006793/0.09229, allocations: 5.617 MB / 363.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003727/0.09607, allocations: 1.857 MB / 365.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006662/0.09676, allocations: 24 kB / 365.1 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003697/0.1005, allocations: 1.61 MB / 366.7 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001864/0.1024, allocations: 0.5905 MB / 367.3 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009803/0.1034, allocations: 418.9 kB / 367.7 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001248/0.1046, allocations: 0.8013 MB / 368.5 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.1062, allocations: 0.872 MB / 369.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005217/0.1067, allocations: 354.7 kB / 369.7 MB, free: 1.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005741/0.1073, allocations: 494.1 kB / 370.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.1075, allocations: 76 kB / 370.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005664/0.1081, allocations: 251.8 kB / 370.5 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.1082, allocations: 187.2 kB / 370.7 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004763/0.1087, allocations: 422 kB / 371.1 MB, free: 424 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1592/0.2679, allocations: 1.153 MB / 372.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.2679, allocations: 2.094 kB / 372.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2679, allocations: 2.031 kB / 372.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.658e-05/0.268, allocations: 0 / 372.3 MB, free: 11.95 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.006082/0.2741, allocations: 1.344 MB / 373.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.2742, allocations: 10.03 kB / 373.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003194/0.2745, allocations: 151.2 kB / 373.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006905/0.2814, allocations: 0.6612 MB / 374.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008122/0.2823, allocations: 410.8 kB / 374.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.2824, allocations: 73.94 kB / 374.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/0.2827, allocations: 98.66 kB / 375 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/0.2849, allocations: 0.9836 MB / 376 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.327e-05/0.2849, allocations: 3 kB / 376 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.477e-05/0.285, allocations: 39.81 kB / 376 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/0.285, allocations: 25.09 kB / 376.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.2867, allocations: 0.9233 MB / 377 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004994/0.2917, allocations: 3.449 MB / 380.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002103/0.2939, allocations: 2.232 MB / 382.7 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004209/0.2943, allocations: 289.8 kB / 382.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001238/0.2945, allocations: 176.4 kB / 383.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.2945, allocations: 48.06 kB / 383.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.385e-06/0.2945, allocations: 0 / 383.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.00139/0.2959, allocations: 0.7184 MB / 383.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.2959, allocations: 112.5 kB / 384 MB, free: 6.277 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000284/0.2962, allocations: 270.9 kB / 384.3 MB, free: 6.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.2963, allocations: 37.42 kB / 384.3 MB, free: 6.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.2965, allocations: 384.7 kB / 384.7 MB, free: 5.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.2966, allocations: 221.9 kB / 384.9 MB, free: 5.598 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.2968, allocations: 140 kB / 385 MB, free: 5.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.083e-05/0.2969, allocations: 347.2 kB / 385.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/0.2973, allocations: 221.8 kB / 385.6 MB, free: 5.117 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004986/0.2978, allocations: 437.2 kB / 386 MB, free: 4.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009542/0.2988, allocations: 0.6972 MB / 386.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.2988, allocations: 4.625 kB / 386.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001278/0.3001, allocations: 0.7481 MB / 387.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3001, allocations: 13.81 kB / 387.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.3001, allocations: 7.234 kB / 387.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.3002, allocations: 10.81 kB / 387.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007257/0.3009, allocations: 192.7 kB / 387.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.457e-05/0.3009, allocations: 12.44 kB / 387.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004673/0.3014, allocations: 78.47 kB / 387.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.993e-05/0.3015, allocations: 35.41 kB / 387.8 MB, free: 3.945 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * 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.0002918/0.3018, allocations: 226 kB / 388 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.3019, allocations: 47.31 kB / 388.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.3031, allocations: 0.6501 MB / 388.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.3031, allocations: 7.906 kB / 388.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.3031, allocations: 1.359 kB / 388.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.3032, allocations: 4.422 kB / 388.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/0.3057, allocations: 1.481 MB / 390.2 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3057, allocations: 0 / 390.2 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005702/0.3063, allocations: 145 kB / 390.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/0.3063, allocations: 2.219 kB / 390.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.3063, allocations: 13.22 kB / 390.4 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/0.3063, allocations: 8.984 kB / 390.4 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3063, allocations: 5.281 kB / 390.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.3078, allocations: 1.115 MB / 391.5 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.3079, allocations: 125.7 kB / 391.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.72e-05/0.308, allocations: 15.81 kB / 391.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/0.3084, allocations: 24.72 kB / 391.7 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.008e-05/0.3085, allocations: 47.8 kB / 391.7 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/0.3086, allocations: 18.06 kB / 391.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000148/0.3087, allocations: 182.2 kB / 391.9 MB, free: 1.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3087, allocations: 0 / 391.9 MB, free: 1.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008307/0.3096, allocations: 230.7 kB / 392.1 MB, free: 1.664 MB / 302.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 (72): * Single equations (assignments): 72 * 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.001793/0.3114, allocations: 1.7 MB / 393.8 MB, free: 488 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.3127, allocations: 0.6529 MB / 394.5 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3127, allocations: 1.75 kB / 394.5 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004632/0.3132, allocations: 301.2 kB / 394.8 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006474/0.3139, allocations: 45.77 kB / 394.8 MB, free: 140 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008125/0.322, allocations: 4.853 MB / 399.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.3227, allocations: 0.9014 MB / 400.6 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004188/0.3231, allocations: 77.5 kB / 400.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.3235, allocations: 257 kB / 400.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3235, allocations: 0 / 400.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.3531, allocations: 9.392 MB / 410.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.401/7.754, allocations: 7.922 kB / 410.3 MB, free: 3.973 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.QuasiStatic.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_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches