Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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.001266/0.001266, allocations: 100.5 kB / 16.99 MB, free: 5.941 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.001427/0.001427, allocations: 183 kB / 17.87 MB, free: 5.609 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.414/1.414, allocations: 223.2 MB / 241.8 MB, free: 400 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2272/0.2272, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.0003329, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1493, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01175/0.1611, allocations: 9.531 MB / 481.1 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009674/0.1708, allocations: 3.746 MB / 484.8 MB, free: 348 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002498/0.1734, allocations: 67.69 kB / 484.9 MB, free: 280 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002337/0.1758, allocations: 0.719 MB / 485.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003937/0.1797, allocations: 0.849 MB / 486.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.1811, allocations: 343.5 kB / 486.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005028/0.1862, allocations: 2.149 MB / 488.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003112/0.1893, allocations: 2.124 MB / 491.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.1916, allocations: 1.051 MB / 492.1 MB, free: 9.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002594/0.1942, allocations: 1.408 MB / 493.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004466/0.1947, allocations: 168 kB / 493.7 MB, free: 7.426 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008823/0.1956, allocations: 247.9 kB / 493.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009393/0.1966, allocations: 0.8646 MB / 494.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009275/0.1975, allocations: 0.6289 MB / 495.4 MB, free: 5.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004916/0.2024, allocations: 4.426 MB / 499.8 MB, free: 1.242 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2025, allocations: 0 / 499.8 MB, free: 1.242 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.458e-06/0.2025, allocations: 0 / 499.8 MB, free: 1.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002009/0.2027, allocations: 4 kB / 499.8 MB, free: 1.238 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007857/0.2106, allocations: 3.233 MB / 0.4913 GB, free: 13.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.146e-05/0.2106, allocations: 8.031 kB / 0.4913 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001113/0.2118, allocations: 417 kB / 0.4917 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.2129, allocations: 399.5 kB / 0.4921 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00415/0.2171, allocations: 1.985 MB / 0.494 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.2173, allocations: 225.6 kB / 0.4942 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004393/0.2178, allocations: 276 kB / 0.4945 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006882/0.2247, allocations: 3.684 MB / 0.4981 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.86e-05/0.2248, allocations: 7.906 kB / 0.4981 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002624/0.225, allocations: 116 kB / 0.4982 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.2252, allocations: 141.5 kB / 0.4983 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006345/0.2316, allocations: 3.129 MB / 0.5014 GB, free: 3.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3034/0.535, allocations: 11.49 MB / 0.5126 GB, free: 40.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003122/0.5382, allocations: 2.115 MB / 0.5147 GB, free: 39.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002873/0.5385, allocations: 210.8 kB / 0.5149 GB, free: 39.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.5386, allocations: 50.31 kB / 0.5149 GB, free: 39.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.155e-06/0.5386, allocations: 0 / 0.5149 GB, free: 39.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01933/0.5579, allocations: 7.947 MB / 0.5227 GB, free: 35.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.558, allocations: 70.25 kB / 0.5228 GB, free: 35.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/0.5608, allocations: 1.878 MB / 0.5246 GB, free: 34.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001463/0.561, allocations: 49.64 kB / 0.5246 GB, free: 34.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007057/0.5617, allocations: 1.372 MB / 0.526 GB, free: 33.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003639/0.5621, allocations: 0.5226 MB / 0.5265 GB, free: 32.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-05/0.5622, allocations: 35.91 kB / 0.5265 GB, free: 32.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.5623, allocations: 377.6 kB / 0.5269 GB, free: 32.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.5634, allocations: 0.8679 MB / 0.5277 GB, free: 32.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/0.5648, allocations: 1.321 MB / 0.529 GB, free: 31.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.5663, allocations: 1.08 MB / 0.5301 GB, free: 30.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.5663, allocations: 3.688 kB / 0.5301 GB, free: 30.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004189/0.5705, allocations: 2.889 MB / 0.5329 GB, free: 28.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.5706, allocations: 14.94 kB / 0.5329 GB, free: 28.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/0.5706, allocations: 15 kB / 0.5329 GB, free: 28.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007326/0.5713, allocations: 359.3 kB / 0.5333 GB, free: 28.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.5729, allocations: 465.8 kB / 0.5337 GB, free: 28.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0044/0.5773, allocations: 6.084 MB / 0.5397 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/0.5798, allocations: 123.8 kB / 0.5398 GB, free: 22.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003278/0.5802, allocations: 71.98 kB / 0.5399 GB, free: 22.58 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002741/0.5829, allocations: 0.9092 MB / 0.5407 GB, free: 21.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009314/0.5839, allocations: 209.7 kB / 0.5409 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004549/0.5884, allocations: 2.89 MB / 0.5438 GB, free: 18.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.5885, allocations: 16 kB / 0.5438 GB, free: 18.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.5885, allocations: 4 kB / 0.5438 GB, free: 18.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.5885, allocations: 14.12 kB / 0.5438 GB, free: 18.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009764/0.5983, allocations: 6.044 MB / 0.5497 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/0.5983, allocations: 4 kB / 0.5497 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009552/0.5993, allocations: 235.6 kB / 0.5499 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001757/0.6011, allocations: 0.7926 MB / 0.5507 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.575e-05/0.6012, allocations: 39.98 kB / 0.5507 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00954/0.6107, allocations: 10.12 MB / 0.5606 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.6108, allocations: 11.88 kB / 0.5606 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007263/0.618, allocations: 4.368 MB / 0.5649 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/0.6197, allocations: 478.7 kB / 0.5654 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002856/0.62, allocations: 39.98 kB / 0.5654 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.621, allocations: 91.89 kB / 0.5655 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000336/0.6214, allocations: 129 kB / 0.5656 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.6215, allocations: 43.98 kB / 0.5656 GB, free: 11.42 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002172/0.6237, allocations: 1.283 MB / 0.5669 GB, free: 10.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6237, allocations: 0 / 0.5669 GB, free: 10.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002942/0.6266, allocations: 0.572 MB / 0.5675 GB, free: 9.543 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * 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 (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(5,84.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007751/0.6344, allocations: 5.94 MB / 0.5733 GB, free: 3.469 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004323/0.6387, allocations: 2.589 MB / 0.5758 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.6388, allocations: 3.938 kB / 0.5758 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002611/0.6414, allocations: 1.669 MB / 0.5774 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.6441, allocations: 499.3 kB / 0.5779 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03676/0.6809, allocations: 26.89 MB / 0.6042 GB, free: 2.465 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002164/0.6831, allocations: 2.276 MB / 0.6064 GB, free: 164 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001828/0.685, allocations: 473.7 kB / 0.6068 GB, free: 15.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001433/0.6864, allocations: 1.128 MB / 0.6079 GB, free: 14.57 MB / 446.1 MB Notification: Performance of SimCode: time 2.164e-06/0.6864, allocations: 0 / 0.6079 GB, free: 14.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09473/0.7812, allocations: 51.11 MB / 0.6578 GB, free: 11.95 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/0.7814, allocations: 217 kB / 0.658 GB, free: 11.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.243/4.025, allocations: 0 / 0.658 GB, free: 11.71 MB / 494.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat