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.00108/0.00108, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.4 MB, free: 9.141 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 67.81 kB / 306.6 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1112, allocations: 50.53 MB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.007709/0.1189, allocations: 5.601 MB / 362.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00397/0.1229, allocations: 1.838 MB / 364.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009032/0.1238, allocations: 23.94 kB / 364.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003773/0.1277, allocations: 1.529 MB / 366.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00203/0.1298, allocations: 0.5211 MB / 366.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.1308, allocations: 379.1 kB / 367 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.1322, allocations: 0.7979 MB / 367.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001823/0.1341, allocations: 0.9847 MB / 368.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000805/0.1349, allocations: 354.7 kB / 369.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008397/0.1357, allocations: 490.2 kB / 369.6 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002766/0.136, allocations: 80 kB / 369.7 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007326/0.1368, allocations: 251.8 kB / 369.9 MB, free: 1.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002116/0.137, allocations: 187.3 kB / 370.1 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005644/0.1376, allocations: 421.9 kB / 370.5 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2098/0.3474, allocations: 1.153 MB / 371.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.3474, allocations: 0 / 371.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3475, allocations: 0 / 371.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.886e-05/0.3475, allocations: 1.312 kB / 371.7 MB, free: 11.98 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.003839/0.3514, allocations: 1.347 MB / 373 MB, free: 11.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.3514, allocations: 9.562 kB / 373 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001803/0.3516, allocations: 148 kB / 373.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0047/0.3563, allocations: 0.6543 MB / 373.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006807/0.357, allocations: 413.9 kB / 374.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.698e-05/0.3571, allocations: 71.38 kB / 374.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.3573, allocations: 98.89 kB / 374.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.3592, allocations: 0.992 MB / 375.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.3593, allocations: 2.062 kB / 375.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.752e-05/0.3594, allocations: 40.34 kB / 375.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.3594, allocations: 22.91 kB / 375.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.361, allocations: 0.9214 MB / 376.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004639/0.3657, allocations: 3.449 MB / 379.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/0.3678, allocations: 2.239 MB / 382 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.3682, allocations: 299.9 kB / 382.3 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001241/0.3683, allocations: 178 kB / 382.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.3684, allocations: 48.2 kB / 382.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 3.146e-06/0.3684, allocations: 0 / 382.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.001365/0.3697, allocations: 0.7155 MB / 383.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.3698, allocations: 117.6 kB / 383.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.3701, allocations: 271.7 kB / 383.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.3701, allocations: 36.58 kB / 383.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.3703, allocations: 377.2 kB / 384.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.3704, allocations: 224.1 kB / 384.3 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001921/0.3706, allocations: 136.2 kB / 384.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.444e-05/0.3707, allocations: 349.9 kB / 384.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004218/0.3712, allocations: 221.8 kB / 385 MB, free: 5.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004968/0.3717, allocations: 442.9 kB / 385.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009167/0.3726, allocations: 0.6976 MB / 386.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.3726, allocations: 2.594 kB / 386.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001197/0.3738, allocations: 0.7463 MB / 386.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.3738, allocations: 12.34 kB / 386.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.3739, allocations: 6.562 kB / 386.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.3739, allocations: 11.47 kB / 386.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006878/0.3746, allocations: 192.3 kB / 387.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.3746, allocations: 13.81 kB / 387.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000415/0.375, allocations: 78.47 kB / 387.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.3751, allocations: 41.22 kB / 387.2 MB, free: 4.027 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.0002625/0.3754, allocations: 219 kB / 387.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3755, allocations: 43.94 kB / 387.5 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.3767, allocations: 0.6512 MB / 388.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.3767, allocations: 7.281 kB / 388.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.3767, allocations: 1.719 kB / 388.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3767, allocations: 8.25 kB / 388.1 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.3791, allocations: 1.485 MB / 389.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3791, allocations: 0 / 389.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005769/0.3797, allocations: 139.7 kB / 389.7 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.3797, allocations: 4.031 kB / 389.7 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.3797, allocations: 16 kB / 389.8 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.3797, allocations: 10.53 kB / 389.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3797, allocations: 0 / 389.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.3812, allocations: 1.118 MB / 390.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.757e-05/0.3813, allocations: 118.2 kB / 391 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.48e-05/0.3814, allocations: 18.97 kB / 391 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.3817, allocations: 26.12 kB / 391 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.3819, allocations: 45.12 kB / 391.1 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.3819, allocations: 19 kB / 391.1 MB, free: 1.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.3821, allocations: 184.5 kB / 391.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3821, allocations: 0 / 391.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008507/0.3829, allocations: 226.8 kB / 391.5 MB, free: 1.746 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.001784/0.3847, allocations: 1.703 MB / 393.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.3861, allocations: 0.6498 MB / 393.9 MB, free: 356 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3861, allocations: 1.906 kB / 393.9 MB, free: 356 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005078/0.3867, allocations: 301.3 kB / 394.2 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006104/0.3873, allocations: 36.94 kB / 394.2 MB, free: 240 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00671/0.394, allocations: 5.21 MB / 399.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004955/0.3945, allocations: 0.9008 MB / 400.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003514/0.3949, allocations: 79.45 kB / 400.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.3952, allocations: 254 kB / 400.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3952, allocations: 0 / 400.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04904/0.4443, allocations: 9.271 MB / 409.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/0.4445, allocations: 213.7 kB / 410.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.015/2.459, allocations: 0 / 410.1 MB, free: 3.895 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