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.001049/0.001049, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.2 MB / 245 MB, free: 5.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009465/0.0009463, allocations: 95.56 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3416/0.3416, allocations: 45.23 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000301/0.000301, allocations: 8 kB / 468.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4111, allocations: 63.26 MB / 0.5193 GB, free: 37.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1632/0.5743, allocations: 124.6 MB / 0.6409 GB, free: 10.73 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.5747, allocations: 83.92 kB / 0.641 GB, free: 10.65 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5444/1.119, allocations: 62.27 MB / 0.7018 GB, free: 105.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.119, allocations: 4 kB / 0.7018 GB, free: 105.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002355/1.119, allocations: 84.11 kB / 0.7019 GB, free: 105.8 MB / 490.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.01015/1.13, allocations: 3.3 MB / 0.7051 GB, free: 104.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.844e-05/1.13, allocations: 9.125 kB / 0.7052 GB, free: 104.3 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001678/1.131, allocations: 414 kB / 0.7055 GB, free: 104.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001983/1.133, allocations: 418.8 kB / 0.7059 GB, free: 104.1 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006134/1.14, allocations: 2.178 MB / 0.7081 GB, free: 103.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002393/1.14, allocations: 210.7 kB / 0.7083 GB, free: 103.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007576/1.141, allocations: 285.4 kB / 0.7085 GB, free: 103.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007429/1.148, allocations: 3.689 MB / 0.7122 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.838e-05/1.148, allocations: 9.5 kB / 0.7122 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003102/1.148, allocations: 118.7 kB / 0.7123 GB, free: 102.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/1.149, allocations: 130.5 kB / 0.7124 GB, free: 102.5 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006189/1.155, allocations: 3.006 MB / 0.7153 GB, free: 101.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01976/1.175, allocations: 11.64 MB / 0.7267 GB, free: 95.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003502/1.178, allocations: 2.25 MB / 0.7289 GB, free: 94.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003512/1.179, allocations: 220.1 kB / 0.7291 GB, free: 94.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/1.179, allocations: 55.16 kB / 0.7292 GB, free: 93.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.358e-06/1.179, allocations: 0 / 0.7292 GB, free: 93.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.01727/1.196, allocations: 8.288 MB / 0.7373 GB, free: 90.91 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/1.196, allocations: 76.08 kB / 0.7373 GB, free: 90.84 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002929/1.199, allocations: 1.713 MB / 0.739 GB, free: 90.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001751/1.199, allocations: 52.89 kB / 0.7391 GB, free: 90.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008692/1.2, allocations: 1.369 MB / 0.7404 GB, free: 89.06 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000435/1.2, allocations: 0.5279 MB / 0.7409 GB, free: 88.65 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.682e-05/1.201, allocations: 35.91 kB / 0.7409 GB, free: 88.62 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/1.201, allocations: 377.2 kB / 0.7413 GB, free: 88.29 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/1.202, allocations: 0.9083 MB / 0.7422 GB, free: 87.96 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001525/1.203, allocations: 1.34 MB / 0.7435 GB, free: 87.09 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/1.205, allocations: 1.128 MB / 0.7446 GB, free: 86.61 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/1.205, allocations: 3.844 kB / 0.7446 GB, free: 86.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004725/1.21, allocations: 2.95 MB / 0.7475 GB, free: 85.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/1.21, allocations: 14.75 kB / 0.7475 GB, free: 85.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/1.21, allocations: 13.53 kB / 0.7475 GB, free: 85.42 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/1.211, allocations: 451 kB / 0.7479 GB, free: 85.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/1.213, allocations: 454.5 kB / 0.7484 GB, free: 85.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006202/1.219, allocations: 7.21 MB / 0.7554 GB, free: 79.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002137/1.221, allocations: 128.4 kB / 0.7555 GB, free: 79.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/1.221, allocations: 75.64 kB / 0.7556 GB, free: 79.88 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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.002252/1.223, allocations: 0.9073 MB / 0.7565 GB, free: 79.39 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005686/1.224, allocations: 209.9 kB / 0.7567 GB, free: 79.29 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005104/1.229, allocations: 3.029 MB / 0.7597 GB, free: 78.09 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/1.229, allocations: 13.59 kB / 0.7597 GB, free: 78.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/1.229, allocations: 9.781 kB / 0.7597 GB, free: 78.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/1.229, allocations: 9.578 kB / 0.7597 GB, free: 78.09 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/1.24, allocations: 6.162 MB / 0.7657 GB, free: 73.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/1.24, allocations: 0 / 0.7657 GB, free: 73.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/1.241, allocations: 246.8 kB / 0.7659 GB, free: 73.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002011/1.243, allocations: 0.8364 MB / 0.7668 GB, free: 72.84 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/1.243, allocations: 43.27 kB / 0.7668 GB, free: 72.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009996/1.253, allocations: 10.54 MB / 0.7771 GB, free: 62.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.253, allocations: 4 kB / 0.7771 GB, free: 62.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006253/1.26, allocations: 4.422 MB / 0.7814 GB, free: 57.65 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/1.261, allocations: 0.4943 MB / 0.7819 GB, free: 57.13 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/1.261, allocations: 32 kB / 0.7819 GB, free: 57.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/1.262, allocations: 111.9 kB / 0.782 GB, free: 56.99 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002807/1.263, allocations: 117 kB / 0.7821 GB, free: 56.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/1.263, allocations: 47.98 kB / 0.7822 GB, free: 56.83 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001907/1.265, allocations: 1.321 MB / 0.7835 GB, free: 55.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.265, allocations: 0 / 0.7835 GB, free: 55.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002192/1.267, allocations: 0.6289 MB / 0.7841 GB, free: 54.86 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 109 * 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.006288/1.273, allocations: 5.867 MB / 0.7898 GB, free: 48.95 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003572/1.277, allocations: 2.677 MB / 0.7924 GB, free: 46.23 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/1.277, allocations: 0 / 0.7924 GB, free: 46.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002046/1.279, allocations: 1.695 MB / 0.7941 GB, free: 44.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002681/1.282, allocations: 488.3 kB / 0.7946 GB, free: 44.04 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02775/1.309, allocations: 26.69 MB / 0.8206 GB, free: 16.16 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001717/1.311, allocations: 2.276 MB / 0.8228 GB, free: 13.86 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00168/1.313, allocations: 464.7 kB / 0.8233 GB, free: 13.41 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/1.314, allocations: 1.128 MB / 0.8244 GB, free: 12.29 MB / 490.7 MB Notification: Performance of SimCode: time 1.433e-06/1.314, allocations: 0 / 0.8244 GB, free: 12.29 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/1.415, allocations: 57.08 MB / 0.8801 GB, free: 3.672 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/1.416, allocations: 225.6 kB / 0.8803 GB, free: 3.426 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.331/5.746, allocations: 0 / 0.8803 GB, free: 3.426 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