Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStationary.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_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.001227/0.001227, allocations: 95.42 kB / 16.94 MB, free: 5.98 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.001133/0.001133, allocations: 182.5 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.505/1.505, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00049/0.0004901, allocations: 8 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09906/0.09956, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench): time 0.02643/0.126, allocations: 23.69 MB / 352.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01727/0.1434, allocations: 7.094 MB / 359.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005722/0.1492, allocations: 211.3 kB / 359.4 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006728/0.1559, allocations: 1.539 MB / 360.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.1662, allocations: 2.509 MB / 363.5 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005067/0.1712, allocations: 1.392 MB / 364.8 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.4131/0.5843, allocations: 18.2 MB / 383.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06693/0.6513, allocations: 35.42 MB / 418.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01064/0.662, allocations: 6.434 MB / 424.9 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01501/0.6771, allocations: 7.551 MB / 432.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006603/0.6837, allocations: 1.168 MB / 433.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0094/0.6932, allocations: 1.362 MB / 435 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008822/0.702, allocations: 3.383 MB / 438.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009566/0.7116, allocations: 3.712 MB / 442.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04102/0.7527, allocations: 33.69 MB / 475.8 MB, free: 3.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.7527, allocations: 0 / 475.8 MB, free: 3.828 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.7527, allocations: 4 kB / 475.8 MB, free: 3.824 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.001322/0.754, allocations: 0 / 475.8 MB, free: 3.824 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5161 * Number of variables: 5161 Notification: Performance of Generate backend data structure: time 0.05896/0.813, allocations: 18.98 MB / 494.7 MB, free: 1.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.8131, allocations: 12.03 kB / 494.8 MB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01535/0.8285, allocations: 3.113 MB / 497.9 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06786/0.8963, allocations: 12.33 MB / 0.4982 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03221/0.9286, allocations: 10.45 MB / 0.5084 GB, free: 7.191 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00203/0.9307, allocations: 1.398 MB / 0.5098 GB, free: 5.809 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009027/0.9398, allocations: 1.829 MB / 0.5116 GB, free: 3.996 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5999/1.54, allocations: 30.59 MB / 0.5415 GB, free: 69.76 MB / 430.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001084/1.541, allocations: 20.11 kB / 0.5415 GB, free: 69.76 MB / 430.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008517/1.549, allocations: 0.7587 MB / 0.5422 GB, free: 69.76 MB / 430.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001594/1.551, allocations: 0.9928 MB / 0.5432 GB, free: 69.72 MB / 430.2 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06942/1.62, allocations: 27.76 MB / 0.5703 GB, free: 69.12 MB / 430.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1738/1.794, allocations: 94.59 MB / 0.6627 GB, free: 284 kB / 446.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04652/1.841, allocations: 53.35 MB / 0.7148 GB, free: 6.043 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3076/2.148, allocations: 16.84 MB / 0.7312 GB, free: 168.7 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.173e-05/2.149, allocations: 81.27 kB / 0.7313 GB, free: 168.6 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=445): time 8.776e-06/2.149, allocations: 0 / 0.7313 GB, free: 168.6 MB / 0.4983 GB Notification: Performance of matching and sorting (n=445): time 0.03447/2.183, allocations: 14.8 MB / 0.7458 GB, free: 163.9 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/2.183, allocations: 128.1 kB / 0.7459 GB, free: 163.8 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01029/2.194, allocations: 7.413 MB / 0.7531 GB, free: 161.3 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 0.0008293/2.194, allocations: 97.33 kB / 0.7532 GB, free: 161.2 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.0059/2.2, allocations: 8.501 MB / 0.7615 GB, free: 154.9 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.002211/2.203, allocations: 1.613 MB / 0.7631 GB, free: 153.7 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007897/2.203, allocations: 219.5 kB / 0.7633 GB, free: 153.6 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.0004791/2.204, allocations: 0.7726 MB / 0.764 GB, free: 153.1 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007052/2.211, allocations: 4.756 MB / 0.7687 GB, free: 151.3 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009023/2.22, allocations: 10.4 MB / 0.7789 GB, free: 141.9 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009319/2.229, allocations: 7.325 MB / 0.786 GB, free: 138.7 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001114/2.229, allocations: 64.25 kB / 0.7861 GB, free: 138.7 MB / 0.4983 GB Notification: Performance of matching and sorting (n=1413) (initialization): time 0.02554/2.255, allocations: 16.17 MB / 0.8019 GB, free: 128.8 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003005/2.255, allocations: 88 kB / 0.8019 GB, free: 128.7 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004158/2.256, allocations: 196 kB / 0.8021 GB, free: 128.5 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00561/2.261, allocations: 1.831 MB / 0.8039 GB, free: 127.1 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008703/2.27, allocations: 2.488 MB / 0.8063 GB, free: 124.8 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/2.284, allocations: 12.34 MB / 0.8184 GB, free: 112.3 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01018/2.295, allocations: 1.551 MB / 0.8199 GB, free: 110.7 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002199/2.297, allocations: 0.6015 MB / 0.8205 GB, free: 110.1 MB / 0.4983 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 894 * 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 (1308): * Single equations (assignments): 1299 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,75.0%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01408/2.311, allocations: 7.398 MB / 0.8277 GB, free: 102.7 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001889/2.313, allocations: 0.6287 MB / 0.8283 GB, free: 102.1 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/2.327, allocations: 8.375 MB / 0.8365 GB, free: 93.67 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008179/2.336, allocations: 6.737 MB / 0.8431 GB, free: 86.92 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.323e-05/2.336, allocations: 12 kB / 0.8431 GB, free: 86.91 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.185e-05/2.336, allocations: 27.91 kB / 0.8431 GB, free: 86.88 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04459/2.38, allocations: 21.11 MB / 0.8637 GB, free: 65.79 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/2.38, allocations: 3.938 kB / 0.8638 GB, free: 65.79 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003084/2.384, allocations: 0.7543 MB / 0.8645 GB, free: 65.03 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0048/2.388, allocations: 1.56 MB / 0.866 GB, free: 63.47 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008323/2.389, allocations: 91.97 kB / 0.8661 GB, free: 63.38 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0137/2.403, allocations: 11.97 MB / 0.8778 GB, free: 51.29 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/2.403, allocations: 0 / 0.8778 GB, free: 51.29 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01626/2.419, allocations: 12.03 MB / 0.8895 GB, free: 39.21 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004165/2.423, allocations: 1.378 MB / 0.8909 GB, free: 37.81 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001835/2.425, allocations: 76 kB / 0.891 GB, free: 37.73 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003985/2.429, allocations: 303.6 kB / 0.8913 GB, free: 37.44 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000814/2.43, allocations: 300.3 kB / 0.8915 GB, free: 37.14 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003082/2.431, allocations: 124 kB / 0.8917 GB, free: 37.02 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.2728/2.703, allocations: 4.863 MB / 0.8964 GB, free: 154.7 MB / 0.4983 GB Notification: Performance of sort global known variables: time 7.91e-07/2.703, allocations: 0 / 0.8964 GB, free: 154.7 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01828/2.722, allocations: 4.205 MB / 0.9005 GB, free: 154.2 MB / 0.4983 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (377): * Single equations (assignments): 368 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,77.8%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02352/2.745, allocations: 12.79 MB / 0.913 GB, free: 151.2 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.01837/2.764, allocations: 11.23 MB / 0.924 GB, free: 147 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/2.764, allocations: 3.969 kB / 0.924 GB, free: 147 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.007852/2.772, allocations: 4.164 MB / 0.928 GB, free: 145.2 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008258/2.78, allocations: 1.399 MB / 0.9294 GB, free: 144.8 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4389/3.219, allocations: 222.2 MB / 1.146 GB, free: 139.8 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02075/3.24, allocations: 11.9 MB / 1.158 GB, free: 134 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.01299/3.253, allocations: 3.945 MB / 1.162 GB, free: 132.4 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01111/3.264, allocations: 6.13 MB / 1.168 GB, free: 126.8 MB / 0.5139 GB Notification: Performance of SimCode: time 1.373e-06/3.264, allocations: 0 / 1.168 GB, free: 126.8 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4676/3.731, allocations: 201.9 MB / 1.365 GB, free: 103.3 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/3.732, allocations: 273.8 kB / 1.365 GB, free: 103 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.862/9.594, allocations: 0 / 1.365 GB, free: 103 MB / 0.5139 GB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat