Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001931/0.00193, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000842/0.0008421, allocations: 104.3 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2262/0.2262, allocations: 45.15 MB / 383.8 MB, free: 252 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.604e-05/1.608e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1282, allocations: 63.25 MB / 0.5045 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4837/0.612, allocations: 123.9 MB / 0.6254 GB, free: 11.17 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/0.6123, allocations: 79.14 kB / 0.6255 GB, free: 11.13 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1648/0.7771, allocations: 61.55 MB / 0.6856 GB, free: 5.656 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.7772, allocations: 0 / 0.6856 GB, free: 5.656 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004012/0.7776, allocations: 87.86 kB / 0.6857 GB, free: 5.57 MB / 474.7 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.009196/0.7868, allocations: 2.931 MB / 0.6885 GB, free: 2.574 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.92e-05/0.7869, allocations: 8.031 kB / 0.6885 GB, free: 2.566 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002207/0.7891, allocations: 416.2 kB / 0.6889 GB, free: 2.156 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005012/0.7942, allocations: 2.153 MB / 0.691 GB, free: 15.95 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.7943, allocations: 96 kB / 0.6911 GB, free: 15.85 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006086/0.7949, allocations: 167.9 kB / 0.6913 GB, free: 15.69 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005641/0.8006, allocations: 2.733 MB / 0.694 GB, free: 12.95 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00655/0.8071, allocations: 3.215 MB / 0.6971 GB, free: 9.598 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.918e-05/0.8072, allocations: 11.89 kB / 0.6971 GB, free: 9.586 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002222/0.8075, allocations: 4 kB / 0.6971 GB, free: 9.582 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001867/0.8077, allocations: 133.5 kB / 0.6972 GB, free: 9.449 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02103/0.8287, allocations: 11.1 MB / 0.7081 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003785/0.8325, allocations: 2.168 MB / 0.7102 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.834, allocations: 1.04 MB / 0.7112 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003775/0.8344, allocations: 231.4 kB / 0.7114 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.8345, allocations: 47.88 kB / 0.7115 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 4.108e-06/0.8345, allocations: 4 kB / 0.7115 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162): time 0.01102/0.8455, allocations: 5.595 MB / 0.717 GB, free: 4.77 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.8456, allocations: 72.66 kB / 0.717 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/0.8484, allocations: 1.444 MB / 0.7184 GB, free: 3.246 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002922/0.8487, allocations: 25.7 kB / 0.7185 GB, free: 3.215 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.8498, allocations: 1.354 MB / 0.7198 GB, free: 1.844 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006615/0.8505, allocations: 0.5311 MB / 0.7203 GB, free: 1.305 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.214e-05/0.8506, allocations: 0 / 0.7203 GB, free: 1.305 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002318/0.8509, allocations: 385.8 kB / 0.7207 GB, free: 0.9219 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.8522, allocations: 0.8513 MB / 0.7215 GB, free: 72 kB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.8538, allocations: 1.276 MB / 0.7227 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.8554, allocations: 1.081 MB / 0.7238 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.8554, allocations: 4 kB / 0.7238 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.004571/0.86, allocations: 2.739 MB / 0.7265 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.8601, allocations: 11.98 kB / 0.7265 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.325e-05/0.8601, allocations: 19.94 kB / 0.7265 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.8612, allocations: 438.6 kB / 0.7269 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/0.863, allocations: 459.3 kB / 0.7274 GB, free: 9.852 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006558/0.8695, allocations: 6.741 MB / 0.7339 GB, free: 2.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/0.8715, allocations: 99.78 kB / 0.734 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002618/0.8718, allocations: 75.98 kB / 0.7341 GB, free: 2.598 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 207 * 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,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000385/0.8722, allocations: 150.1 kB / 0.7343 GB, free: 2.449 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004702/0.8769, allocations: 2.659 MB / 0.7369 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005085/0.8774, allocations: 201.6 kB / 0.737 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005088/0.8825, allocations: 2.843 MB / 0.7398 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.8826, allocations: 16 kB / 0.7398 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.8826, allocations: 12.11 kB / 0.7399 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.8826, allocations: 11.91 kB / 0.7399 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01134/0.894, allocations: 5.733 MB / 0.7455 GB, free: 6.832 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.894, allocations: 4 kB / 0.7455 GB, free: 6.828 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.8952, allocations: 247.6 kB / 0.7457 GB, free: 6.586 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/0.8975, allocations: 0.8302 MB / 0.7465 GB, free: 5.746 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/0.8976, allocations: 23.97 kB / 0.7465 GB, free: 5.723 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3533/1.251, allocations: 10 MB / 0.7563 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-05/1.251, allocations: 9.75 kB / 0.7563 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007744/1.259, allocations: 4.345 MB / 0.7606 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/1.26, allocations: 488.6 kB / 0.761 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/1.26, allocations: 14.14 kB / 0.761 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/1.262, allocations: 83.69 kB / 0.7611 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000345/1.262, allocations: 125 kB / 0.7612 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/1.262, allocations: 49.45 kB / 0.7613 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001821/1.264, allocations: 1.087 MB / 0.7623 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3e-07/1.264, allocations: 0 / 0.7623 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002432/1.266, allocations: 0.5417 MB / 0.7629 GB, free: 137.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,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 () * 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,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008117/1.274, allocations: 5.881 MB / 0.7686 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004504/1.279, allocations: 2.533 MB / 0.7711 GB, free: 135 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.279, allocations: 0 / 0.7711 GB, free: 135 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002554/1.282, allocations: 1.622 MB / 0.7727 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002797/1.284, allocations: 424.7 kB / 0.7731 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/1.295, allocations: 5.356 MB / 0.7783 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001646/1.297, allocations: 2.275 MB / 0.7805 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001734/1.299, allocations: 471.9 kB / 0.781 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/1.3, allocations: 1.136 MB / 0.7821 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.092e-06/1.3, allocations: 0 / 0.7821 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08315/1.383, allocations: 49.37 MB / 0.8303 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/1.383, allocations: 163 kB / 0.8305 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.562/4.945, allocations: 4 kB / 0.8305 GB, free: 121.4 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat