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.0007985/0.0007985, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009528/0.0009527, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001863/0.0001863, allocations: 4 kB / 307.8 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07791/0.07811, allocations: 51.53 MB / 359.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.005027/0.08318, allocations: 5.11 MB / 364.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002913/0.08611, allocations: 1.83 MB / 366.3 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/0.08652, allocations: 23.94 kB / 366.3 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006103/0.08714, allocations: 266.9 kB / 366.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001204/0.08835, allocations: 0.5399 MB / 367.1 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006615/0.08902, allocations: 371.2 kB / 367.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006254/0.08967, allocations: 0.7744 MB / 368.3 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00252/0.09219, allocations: 1.675 MB / 369.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003245/0.09253, allocations: 294.7 kB / 370.2 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004487/0.09299, allocations: 438.1 kB / 370.7 MB, free: 1.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.603e-05/0.09306, allocations: 36 kB / 370.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003493/0.09342, allocations: 203.8 kB / 370.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-05/0.09352, allocations: 135.3 kB / 371 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.0938, allocations: 395.6 kB / 371.4 MB, free: 1.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1396/0.2334, allocations: 1.109 MB / 372.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.2334, allocations: 2 kB / 372.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2334, allocations: 0 / 372.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.506e-05/0.2334, allocations: 0 / 372.5 MB, free: 11.27 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.002856/0.2363, allocations: 1.185 MB / 373.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2363, allocations: 10.22 kB / 373.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.2365, allocations: 149.4 kB / 373.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004329/0.2408, allocations: 0.6606 MB / 374.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.2412, allocations: 416.9 kB / 374.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.401e-05/0.2413, allocations: 72.28 kB / 375 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.2414, allocations: 93.97 kB / 375.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.243, allocations: 0.9913 MB / 376.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.765e-05/0.2431, allocations: 4.969 kB / 376.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.063e-05/0.2432, allocations: 42.16 kB / 376.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.2432, allocations: 23.72 kB / 376.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.2446, allocations: 0.9316 MB / 377.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003779/0.2484, allocations: 3.463 MB / 380.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.2502, allocations: 2.239 MB / 382.8 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00038/0.2506, allocations: 299.3 kB / 383.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.776e-05/0.2507, allocations: 175.2 kB / 383.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.2507, allocations: 46.27 kB / 383.3 MB, free: 6.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 1.613e-06/0.2507, allocations: 0 / 383.3 MB, free: 6.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.001185/0.2519, allocations: 0.7347 MB / 384 MB, free: 6.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.2519, allocations: 110.6 kB / 384.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.2522, allocations: 271 kB / 384.4 MB, free: 6.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.2522, allocations: 35.89 kB / 384.4 MB, free: 6.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.2524, allocations: 381.2 kB / 384.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.2525, allocations: 225 kB / 385 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.368e-05/0.2526, allocations: 65.09 kB / 385.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.199e-05/0.2526, allocations: 347.6 kB / 385.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003758/0.253, allocations: 228.8 kB / 385.7 MB, free: 5.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004568/0.2535, allocations: 448.4 kB / 386.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008378/0.2543, allocations: 0.7081 MB / 386.8 MB, free: 4.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.2543, allocations: 2.594 kB / 386.8 MB, free: 4.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00109/0.2554, allocations: 0.7543 MB / 387.6 MB, free: 4.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.2554, allocations: 12.92 kB / 387.6 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.2555, allocations: 6.281 kB / 387.6 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.2555, allocations: 15.05 kB / 387.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006299/0.2561, allocations: 194.5 kB / 387.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.2562, allocations: 19.98 kB / 387.8 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.2565, allocations: 79.84 kB / 387.9 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.694e-05/0.2566, allocations: 32.08 kB / 387.9 MB, free: 4.043 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.0002004/0.2568, allocations: 222 kB / 388.1 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.556e-05/0.2569, allocations: 48.53 kB / 388.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.258, allocations: 0.6609 MB / 388.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.258, allocations: 7.438 kB / 388.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.258, allocations: 1.156 kB / 388.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.258, allocations: 5.297 kB / 388.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.2599, allocations: 1.494 MB / 390.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2599, allocations: 1.531 kB / 390.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/0.2605, allocations: 141.1 kB / 390.5 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.2605, allocations: 4.047 kB / 390.5 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.2605, allocations: 18.19 kB / 390.5 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.2605, allocations: 6.797 kB / 390.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2605, allocations: 1.094 kB / 390.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.2619, allocations: 1.133 MB / 391.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.822e-05/0.262, allocations: 124 kB / 391.8 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/0.262, allocations: 13.11 kB / 391.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/0.2624, allocations: 31.16 kB / 391.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.2624, allocations: 44.69 kB / 391.9 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.2625, allocations: 18.03 kB / 391.9 MB, free: 1.941 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001339/0.2626, allocations: 184.1 kB / 392 MB, free: 1.828 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.02e-07/0.2626, allocations: 4.062 kB / 392.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000609/0.2632, allocations: 229.7 kB / 392.3 MB, free: 1.754 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.001521/0.2648, allocations: 1.716 MB / 394 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008592/0.2656, allocations: 0.6245 MB / 394.6 MB, free: 384 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2657, allocations: 2.812 kB / 394.6 MB, free: 384 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003822/0.266, allocations: 313.1 kB / 394.9 MB, free: 288 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.2666, allocations: 38.31 kB / 395 MB, free: 260 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005549/0.2721, allocations: 5.289 MB / 400.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.2725, allocations: 0.9045 MB / 401.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003059/0.2729, allocations: 81.59 kB / 401.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002903/0.2731, allocations: 258.9 kB / 401.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2732, allocations: 0 / 401.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.863/2.136, allocations: 8.861 MB / 410.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/2.136, allocations: 232.4 kB / 410.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.417/4.554, allocations: 3.516 kB / 410.6 MB, free: 3.859 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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