Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_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.0009898/0.0009897, allocations: 97.41 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008514/0.0008516, allocations: 172.5 kB / 16.58 MB, free: 6.051 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.476/1.476, allocations: 205.4 MB / 222.8 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.336/0.336, allocations: 43.55 MB / 314.6 MB, free: 8.738 MB / 254.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.0006132/0.0006133, allocations: 16 kB / 384 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1061, allocations: 58.85 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01061/0.1168, allocations: 10.28 MB / 453.1 MB, free: 2.641 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2056/0.3224, allocations: 3.714 MB / 456.9 MB, free: 37.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001699/0.3242, allocations: 57.66 kB / 456.9 MB, free: 37.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.3257, allocations: 0.6844 MB / 457.6 MB, free: 37.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.3275, allocations: 0.7923 MB / 458.4 MB, free: 37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006594/0.3281, allocations: 342.6 kB / 458.7 MB, free: 36.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002206/0.3303, allocations: 3.309 MB / 462 MB, free: 36.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.3323, allocations: 2.072 MB / 464.1 MB, free: 36.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001285/0.3336, allocations: 1.123 MB / 465.2 MB, free: 35.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001493/0.3351, allocations: 1.594 MB / 466.8 MB, free: 35.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002622/0.3354, allocations: 170.4 kB / 467 MB, free: 35.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005337/0.3359, allocations: 260.9 kB / 467.2 MB, free: 35.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006753/0.3366, allocations: 0.9053 MB / 468.2 MB, free: 35.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004998/0.3371, allocations: 0.6346 MB / 468.8 MB, free: 35.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002856/0.34, allocations: 4.462 MB / 473.2 MB, free: 34.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.34, allocations: 2.875 kB / 473.3 MB, free: 34.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.34, allocations: 3.328 kB / 473.3 MB, free: 34.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000101/0.3401, allocations: 0 / 473.3 MB, free: 34.93 MB / 382.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.005265/0.3454, allocations: 3.237 MB / 476.5 MB, free: 33.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3454, allocations: 10.16 kB / 476.5 MB, free: 33.49 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005204/0.3459, allocations: 416 kB / 476.9 MB, free: 33.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007755/0.3467, allocations: 395.5 kB / 477.3 MB, free: 33.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002659/0.3494, allocations: 1.876 MB / 479.2 MB, free: 32.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.3496, allocations: 224.9 kB / 479.4 MB, free: 32.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004003/0.35, allocations: 282 kB / 479.7 MB, free: 32.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006885/0.3569, allocations: 3.712 MB / 483.4 MB, free: 32.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.17e-05/0.357, allocations: 7.547 kB / 483.4 MB, free: 32.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002362/0.3572, allocations: 113.5 kB / 483.5 MB, free: 32.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.3574, allocations: 142.9 kB / 483.6 MB, free: 32.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005238/0.3626, allocations: 3.154 MB / 486.8 MB, free: 31.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01775/0.3804, allocations: 11.61 MB / 498.4 MB, free: 24.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003158/0.3836, allocations: 2.181 MB / 0.4888 GB, free: 23.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.3852, allocations: 1.235 MB / 0.4901 GB, free: 22.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002535/0.3855, allocations: 214.2 kB / 0.4903 GB, free: 22.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.3856, allocations: 45 kB / 0.4903 GB, free: 22.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.196e-06/0.3856, allocations: 4 kB / 0.4903 GB, free: 22.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01553/0.4011, allocations: 8.211 MB / 0.4983 GB, free: 18.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.4012, allocations: 67.84 kB / 0.4984 GB, free: 17.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/0.4038, allocations: 1.924 MB / 0.5003 GB, free: 16.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.47e-05/0.4039, allocations: 50.86 kB / 0.5003 GB, free: 16.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006806/0.4046, allocations: 1.362 MB / 0.5016 GB, free: 15.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003198/0.405, allocations: 0.5242 MB / 0.5022 GB, free: 15.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.377e-05/0.4051, allocations: 33.53 kB / 0.5022 GB, free: 15.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.397e-05/0.4052, allocations: 379.1 kB / 0.5026 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.4064, allocations: 0.8754 MB / 0.5034 GB, free: 14.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.4079, allocations: 1.344 MB / 0.5047 GB, free: 13.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.4096, allocations: 1.091 MB / 0.5058 GB, free: 12.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/0.4096, allocations: 2.188 kB / 0.5058 GB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004261/0.4139, allocations: 2.919 MB / 0.5086 GB, free: 10.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.4139, allocations: 14.44 kB / 0.5087 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.4139, allocations: 16 kB / 0.5087 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007239/0.4147, allocations: 390.2 kB / 0.509 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.4161, allocations: 449.9 kB / 0.5095 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004573/0.4206, allocations: 6.21 MB / 0.5155 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.4225, allocations: 123.8 kB / 0.5157 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.4226, allocations: 72 kB / 0.5157 GB, free: 2.621 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 (206): * Single equations (assignments): 202 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001558/0.4242, allocations: 0.9071 MB / 0.5166 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004195/0.4246, allocations: 209.1 kB / 0.5168 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00471/0.4293, allocations: 2.903 MB / 0.5196 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/0.4293, allocations: 19.98 kB / 0.5197 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.4294, allocations: 8 kB / 0.5197 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.4294, allocations: 7.969 kB / 0.5197 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/0.4408, allocations: 6.159 MB / 0.5257 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.4409, allocations: 4.938 kB / 0.5257 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009803/0.4418, allocations: 239.6 kB / 0.5259 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001863/0.4437, allocations: 0.8034 MB / 0.5267 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.4439, allocations: 39.98 kB / 0.5267 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01105/0.4549, allocations: 9.832 MB / 0.5363 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4549, allocations: 4.094 kB / 0.5364 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006352/0.4613, allocations: 4.18 MB / 0.5404 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.4624, allocations: 0.4906 MB / 0.5409 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005265/0.4629, allocations: 32 kB / 0.5409 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.4642, allocations: 103.9 kB / 0.541 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/0.4645, allocations: 125 kB / 0.5412 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.4646, allocations: 47.98 kB / 0.5412 GB, free: 7.891 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002453/0.4671, allocations: 1.325 MB / 0.5425 GB, free: 6.543 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4671, allocations: 0 / 0.5425 GB, free: 6.543 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002468/0.4696, allocations: 0.5703 MB / 0.5431 GB, free: 5.973 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (117): * Single equations (assignments): 114 * 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,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006837/0.4764, allocations: 4.797 MB / 0.5477 GB, free: 1.086 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004348/0.4808, allocations: 2.625 MB / 0.5503 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/0.4808, allocations: 4.438 kB / 0.5503 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002478/0.4833, allocations: 1.64 MB / 0.5519 GB, free: 12.73 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/0.4866, allocations: 0.5121 MB / 0.5524 GB, free: 12.22 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03172/0.5184, allocations: 17.95 MB / 0.5699 GB, free: 9.086 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002205/0.5206, allocations: 2.213 MB / 0.5721 GB, free: 6.844 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001621/0.5222, allocations: 461.7 kB / 0.5725 GB, free: 6.391 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/0.5238, allocations: 1.144 MB / 0.5737 GB, free: 5.246 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5238, allocations: 0 / 0.5737 GB, free: 5.246 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08319/0.607, allocations: 51.91 MB / 0.6244 GB, free: 1.359 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.6073, allocations: 226 kB / 0.6246 GB, free: 1.117 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.797/3.404, allocations: 0 / 0.6246 GB, free: 1.117 MB / 494.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat