Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") translateModel(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.001462/0.001462, allocations: 192 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009433/0.0009433, allocations: 51.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2469, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02698/0.274, allocations: 28.62 MB / 429.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01607/0.2901, allocations: 7.125 MB / 436.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005013/0.2951, allocations: 267.2 kB / 436.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02709/0.3223, allocations: 13.09 MB / 449.8 MB, free: 7.609 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00933/0.3316, allocations: 2.691 MB / 452.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00558/0.3372, allocations: 1.838 MB / 454.4 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02193/0.3592, allocations: 18.1 MB / 472.5 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07159/0.4308, allocations: 44.45 MB / 0.5048 GB, free: 4.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01443/0.4453, allocations: 9.944 MB / 0.5145 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0169/0.4622, allocations: 11.05 MB / 0.5253 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008019/0.4702, allocations: 2.918 MB / 0.5281 GB, free: 12.27 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01198/0.4823, allocations: 3.168 MB / 0.5312 GB, free: 9.098 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00883/0.4911, allocations: 5.48 MB / 0.5366 GB, free: 3.605 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4354/0.9265, allocations: 10.82 MB / 0.5472 GB, free: 59.39 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03381/0.9604, allocations: 39.07 MB / 0.5853 GB, free: 44.74 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.9604, allocations: 3.375 kB / 0.5853 GB, free: 44.74 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.9604, allocations: 0 / 0.5853 GB, free: 44.74 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001141/0.9616, allocations: 0 / 0.5853 GB, free: 44.74 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.0573/1.019, allocations: 22.31 MB / 0.6071 GB, free: 30.96 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/1.019, allocations: 13.39 kB / 0.6071 GB, free: 30.95 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04135/1.06, allocations: 8.415 MB / 0.6153 GB, free: 24.19 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02088/1.081, allocations: 11.65 MB / 0.6267 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001072/1.082, allocations: 1.34 MB / 0.628 GB, free: 11.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006432/1.089, allocations: 1.762 MB / 0.6297 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06932/1.158, allocations: 28.7 MB / 0.6578 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007377/1.159, allocations: 19.8 kB / 0.6578 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005885/1.165, allocations: 0.732 MB / 0.6585 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008411/1.166, allocations: 0.8454 MB / 0.6593 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06025/1.226, allocations: 24.79 MB / 0.6835 GB, free: 2.848 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3869/1.613, allocations: 87.1 MB / 0.7686 GB, free: 153.7 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02046/1.633, allocations: 35.12 MB / 0.8029 GB, free: 126.2 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007101/1.641, allocations: 5.437 MB / 0.8082 GB, free: 126.1 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003682/1.641, allocations: 211.6 kB / 0.8084 GB, free: 126 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/1.641, allocations: 91.89 kB / 0.8085 GB, free: 125.9 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.083e-06/1.641, allocations: 0 / 0.8085 GB, free: 125.9 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.02829/1.669, allocations: 14.76 MB / 0.8229 GB, free: 125.1 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.431e-05/1.669, allocations: 138.9 kB / 0.823 GB, free: 125 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00856/1.678, allocations: 6.425 MB / 0.8293 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0004461/1.678, allocations: 117 kB / 0.8294 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003355/1.682, allocations: 7.903 MB / 0.8371 GB, free: 119.6 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001398/1.683, allocations: 2.109 MB / 0.8392 GB, free: 118 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002574/1.686, allocations: 2.102 MB / 0.8412 GB, free: 117 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.854e-05/1.686, allocations: 305.1 kB / 0.8415 GB, free: 116.7 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005461/1.691, allocations: 4.738 MB / 0.8462 GB, free: 114.2 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007328/1.699, allocations: 9.466 MB / 0.8554 GB, free: 105.2 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01351/1.712, allocations: 15.3 MB / 0.8704 GB, free: 88.6 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.708e-05/1.712, allocations: 44 kB / 0.8704 GB, free: 88.56 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.01943/1.732, allocations: 15.41 MB / 0.8854 GB, free: 73.06 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 7.778e-05/1.732, allocations: 72 kB / 0.8855 GB, free: 72.99 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002021/1.732, allocations: 160 kB / 0.8857 GB, free: 72.84 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004813/1.737, allocations: 1.665 MB / 0.8873 GB, free: 71.17 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006851/1.744, allocations: 2.347 MB / 0.8896 GB, free: 68.82 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/1.756, allocations: 11.62 MB / 0.9009 GB, free: 57.07 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006631/1.763, allocations: 1.378 MB / 0.9023 GB, free: 55.68 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009741/1.764, allocations: 0.5273 MB / 0.9028 GB, free: 55.15 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1243): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009647/1.773, allocations: 7.145 MB / 0.9098 GB, free: 47.99 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.774, allocations: 0.6455 MB / 0.9104 GB, free: 47.34 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01358/1.788, allocations: 10.1 MB / 0.9203 GB, free: 37.13 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009621/1.797, allocations: 7.769 MB / 0.9278 GB, free: 29.27 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/1.797, allocations: 12 kB / 0.9279 GB, free: 29.26 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.269e-05/1.798, allocations: 31.89 kB / 0.9279 GB, free: 29.23 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03925/1.837, allocations: 25.45 MB / 0.9527 GB, free: 3.598 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/1.837, allocations: 12.22 kB / 0.9528 GB, free: 3.586 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003573/1.84, allocations: 1.006 MB / 0.9537 GB, free: 2.578 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00455/1.845, allocations: 1.469 MB / 0.9552 GB, free: 1.105 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003061/1.845, allocations: 124 kB / 0.9553 GB, free: 0.9844 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/1.86, allocations: 11.16 MB / 0.9662 GB, free: 5.703 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.687e-06/1.86, allocations: 8 kB / 0.9662 GB, free: 5.695 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2675/2.128, allocations: 14.12 MB / 0.98 GB, free: 186.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003208/2.131, allocations: 1.473 MB / 0.9814 GB, free: 186 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000955/2.132, allocations: 108.7 kB / 0.9815 GB, free: 186 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002826/2.135, allocations: 322.8 kB / 0.9818 GB, free: 186 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007636/2.136, allocations: 403.7 kB / 0.9822 GB, free: 186 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003575/2.136, allocations: 170.8 kB / 0.9824 GB, free: 186 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006332/2.142, allocations: 4.308 MB / 0.9866 GB, free: 185.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.7e-07/2.142, allocations: 0 / 0.9866 GB, free: 185.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009751/2.152, allocations: 4.096 MB / 0.9906 GB, free: 184.8 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 1 (source.plug_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 (528): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008652/2.153, allocations: 322.8 kB / 0.9909 GB, free: 184.6 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01502/2.168, allocations: 11.37 MB / 1.002 GB, free: 180.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/2.168, allocations: 7.938 kB / 1.002 GB, free: 180.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00561/2.174, allocations: 4.647 MB / 1.007 GB, free: 178.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006781/2.18, allocations: 1.553 MB / 1.008 GB, free: 178 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04383/2.224, allocations: 29.72 MB / 1.037 GB, free: 158 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01095/2.235, allocations: 11.26 MB / 1.048 GB, free: 149.4 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007713/2.243, allocations: 3.767 MB / 1.052 GB, free: 146.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001404/2.244, allocations: 0.5219 MB / 1.052 GB, free: 146.4 MB / 0.5763 GB Notification: Performance of SimCode: time 7.32e-07/2.244, allocations: 0 / 1.052 GB, free: 146.4 MB / 0.5763 GB Notification: Performance of Templates: time 0.137/2.381, allocations: 99.2 MB / 1.149 GB, free: 49.12 MB / 0.5763 GB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches