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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",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.001104/0.001108, allocations: 106 kB / 16.62 MB, free: 6.812 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.001696/0.001696, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.338/1.338, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 45.7 kB / 300.2 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.08515, allocations: 49.44 MB / 349.7 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1758/0.261, allocations: 28.03 MB / 377.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.2737, allocations: 7.037 MB / 384.8 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005462/0.2792, allocations: 252.5 kB / 385 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02626/0.3055, allocations: 12.45 MB / 397.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00981/0.3153, allocations: 2.39 MB / 399.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005815/0.3211, allocations: 1.704 MB / 401.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02041/0.3416, allocations: 17.95 MB / 419.5 MB, free: 224 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07691/0.4185, allocations: 51.64 MB / 471.1 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01506/0.4336, allocations: 10.06 MB / 481.2 MB, free: 2.293 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01766/0.4513, allocations: 11.15 MB / 492.4 MB, free: 7.105 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008936/0.4603, allocations: 2.922 MB / 495.3 MB, free: 4.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009988/0.4703, allocations: 3.168 MB / 498.4 MB, free: 1.016 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007982/0.4783, allocations: 5.503 MB / 0.4921 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01747/0.4958, allocations: 10.83 MB / 0.5027 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3558/0.8517, allocations: 38.8 MB / 0.5406 GB, free: 83.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.8517, allocations: 1.75 kB / 0.5406 GB, free: 83.04 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.8517, allocations: 0 / 0.5406 GB, free: 83.04 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001043/0.8528, allocations: 0 / 0.5406 GB, free: 83.04 MB / 430.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.059/0.9118, allocations: 22.04 MB / 0.5621 GB, free: 70.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.9118, allocations: 7.844 kB / 0.5621 GB, free: 70.91 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00817/0.92, allocations: 2.961 MB / 0.565 GB, free: 69.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0398/0.9598, allocations: 8.324 MB / 0.5732 GB, free: 63.22 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01861/0.9785, allocations: 11.28 MB / 0.5842 GB, free: 52.48 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007126/0.9792, allocations: 1.334 MB / 0.5855 GB, free: 51.15 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006544/0.9857, allocations: 1.75 MB / 0.5872 GB, free: 49.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06789/1.054, allocations: 28.78 MB / 0.6153 GB, free: 20.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005791/1.054, allocations: 19.56 kB / 0.6153 GB, free: 20.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006908/1.061, allocations: 0.7298 MB / 0.616 GB, free: 19.86 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005977/1.062, allocations: 0.861 MB / 0.6169 GB, free: 18.99 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04905/1.111, allocations: 24.83 MB / 0.6411 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3106/1.421, allocations: 88.03 MB / 0.7271 GB, free: 116.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01957/1.441, allocations: 35.2 MB / 0.7614 GB, free: 89.44 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006486/1.448, allocations: 5.376 MB / 0.7667 GB, free: 89.33 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004451/1.448, allocations: 207.1 kB / 0.7669 GB, free: 89.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/1.448, allocations: 97.44 kB / 0.767 GB, free: 89.18 MB / 494.1 MB Notification: Performance of pre-optimization done (n=589): time 7.474e-06/1.448, allocations: 4 kB / 0.767 GB, free: 89.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=589): time 0.02981/1.478, allocations: 14.8 MB / 0.7814 GB, free: 88.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/1.478, allocations: 141.1 kB / 0.7816 GB, free: 88.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008679/1.487, allocations: 6.416 MB / 0.7878 GB, free: 86.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009142/1.488, allocations: 117.4 kB / 0.788 GB, free: 86.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003139/1.491, allocations: 7.611 MB / 0.7954 GB, free: 79.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001818/1.493, allocations: 2.044 MB / 0.7974 GB, free: 78.01 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00259/1.495, allocations: 2.105 MB / 0.7994 GB, free: 76.81 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.655e-05/1.495, allocations: 301.1 kB / 0.7997 GB, free: 76.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005759/1.501, allocations: 4.811 MB / 0.8044 GB, free: 73.95 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007924/1.509, allocations: 9.546 MB / 0.8138 GB, free: 62.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01396/1.523, allocations: 15.46 MB / 0.8288 GB, free: 44.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/1.523, allocations: 48 kB / 0.8289 GB, free: 44.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02208/1.545, allocations: 15.54 MB / 0.8441 GB, free: 28.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001518/1.545, allocations: 79.98 kB / 0.8441 GB, free: 28.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002021/1.546, allocations: 160 kB / 0.8443 GB, free: 28.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005405/1.551, allocations: 1.665 MB / 0.8459 GB, free: 26.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007846/1.559, allocations: 2.355 MB / 0.8482 GB, free: 24.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/1.572, allocations: 11.6 MB / 0.8596 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007619/1.58, allocations: 1.354 MB / 0.8609 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001604/1.581, allocations: 0.5312 MB / 0.8614 GB, free: 10.89 MB / 494.1 MB 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01074/1.592, allocations: 7.149 MB / 0.8684 GB, free: 3.727 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00155/1.594, allocations: 0.6056 MB / 0.869 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01513/1.609, allocations: 10.29 MB / 0.879 GB, free: 8.719 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01174/1.621, allocations: 7.935 MB / 0.8868 GB, free: 0.6992 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/1.621, allocations: 13.31 kB / 0.8868 GB, free: 0.6875 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.496e-05/1.621, allocations: 31.89 kB / 0.8868 GB, free: 0.6562 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2206/1.841, allocations: 26.25 MB / 0.9124 GB, free: 156.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-05/1.841, allocations: 6.438 kB / 0.9124 GB, free: 156.3 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00346/1.845, allocations: 1.011 MB / 0.9134 GB, free: 156.2 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004667/1.85, allocations: 1.47 MB / 0.9149 GB, free: 155.9 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004417/1.85, allocations: 131.9 kB / 0.915 GB, free: 155.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01183/1.862, allocations: 11.15 MB / 0.9259 GB, free: 150 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/1.862, allocations: 15.69 kB / 0.9259 GB, free: 150 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01667/1.879, allocations: 14.37 MB / 0.9399 GB, free: 141 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00315/1.882, allocations: 1.453 MB / 0.9414 GB, free: 139.7 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001072/1.883, allocations: 111.7 kB / 0.9415 GB, free: 139.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002703/1.886, allocations: 328.8 kB / 0.9418 GB, free: 139.3 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006999/1.886, allocations: 405.1 kB / 0.9422 GB, free: 139.1 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003025/1.887, allocations: 171.2 kB / 0.9423 GB, free: 138.9 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005222/1.892, allocations: 4.305 MB / 0.9465 GB, free: 135.4 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.3e-07/1.892, allocations: 0 / 0.9465 GB, free: 135.4 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009891/1.902, allocations: 4.035 MB / 0.9505 GB, free: 131.4 MB / 0.4982 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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01637/1.918, allocations: 15.18 MB / 0.9653 GB, free: 117.1 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.05012/1.968, allocations: 27.28 MB / 0.9919 GB, free: 89.8 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.968, allocations: 4.312 kB / 0.9919 GB, free: 89.8 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.005604/1.974, allocations: 4.733 MB / 0.9966 GB, free: 85.04 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006422/1.98, allocations: 1.556 MB / 0.9981 GB, free: 83.53 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3573/2.338, allocations: 121 MB / 1.116 GB, free: 144.7 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01732/2.355, allocations: 11.27 MB / 1.127 GB, free: 140.6 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.009681/2.365, allocations: 3.772 MB / 1.131 GB, free: 139.2 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01038/2.375, allocations: 5.877 MB / 1.137 GB, free: 133.8 MB / 0.4982 GB Notification: Performance of SimCode: time 1.092e-06/2.375, allocations: 0 / 1.137 GB, free: 133.8 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4426/2.818, allocations: 209.6 MB / 1.341 GB, free: 106.6 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/2.818, allocations: 296.9 kB / 1.342 GB, free: 106.2 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.167/8.985, allocations: 4 kB / 1.342 GB, free: 106.2 MB / 0.4982 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/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