Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00231/0.002315, allocations: 182.5 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001175/0.001175, allocations: 89.48 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003896, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4448/0.4452, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.02251/0.4678, allocations: 8.852 MB / 383.5 MB, free: 38.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.4812, allocations: 3.552 MB / 387 MB, free: 35.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00299/0.4843, allocations: 50.72 kB / 387.1 MB, free: 35.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004647/0.489, allocations: 0.6853 MB / 387.8 MB, free: 35.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006087/0.4951, allocations: 0.7775 MB / 388.6 MB, free: 34.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002682/0.4978, allocations: 302.8 kB / 388.8 MB, free: 34.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00715/0.505, allocations: 1.926 MB / 390.8 MB, free: 32.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00473/0.5098, allocations: 1.813 MB / 392.6 MB, free: 30.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.5117, allocations: 0.9418 MB / 393.5 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002294/0.514, allocations: 1.245 MB / 394.8 MB, free: 28.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005515/0.5146, allocations: 148 kB / 394.9 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.5157, allocations: 227.8 kB / 395.1 MB, free: 28.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.5167, allocations: 0.7633 MB / 395.9 MB, free: 27.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009372/0.5177, allocations: 0.5666 MB / 396.5 MB, free: 26.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006335/0.5241, allocations: 3.88 MB / 400.3 MB, free: 23.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.5241, allocations: 3.938 kB / 400.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.928e-06/0.5241, allocations: 0 / 400.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000139/0.5243, allocations: 0 / 400.4 MB, free: 23.02 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.008427/0.5327, allocations: 2.849 MB / 403.2 MB, free: 20.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.5328, allocations: 8.031 kB / 403.2 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001009/0.5338, allocations: 370.8 kB / 403.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001151/0.535, allocations: 344.1 kB / 403.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004113/0.5391, allocations: 1.659 MB / 405.6 MB, free: 17.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002139/0.5394, allocations: 193 kB / 405.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005818/0.54, allocations: 252 kB / 406 MB, free: 17.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00787/0.5478, allocations: 3.24 MB / 409.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.548, allocations: 7.906 kB / 409.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003333/0.5483, allocations: 100 kB / 409.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001667/0.5485, allocations: 124.9 kB / 409.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007455/0.556, allocations: 2.732 MB / 412.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02427/0.5803, allocations: 10.5 MB / 422.7 MB, free: 76 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003407/0.5838, allocations: 1.346 MB / 424 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005038/0.5843, allocations: 212.2 kB / 424.3 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/0.5844, allocations: 43.56 kB / 424.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 3.306e-06/0.5844, allocations: 0 / 424.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.02973/0.6141, allocations: 7.088 MB / 431.4 MB, free: 7.172 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.6142, allocations: 64.41 kB / 431.4 MB, free: 7.098 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004298/0.6185, allocations: 1.719 MB / 433.2 MB, free: 5.379 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002941/0.6189, allocations: 45.7 kB / 433.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.6202, allocations: 1.209 MB / 434.4 MB, free: 4.105 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007113/0.621, allocations: 429.9 kB / 434.8 MB, free: 3.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.6212, allocations: 32 kB / 434.9 MB, free: 3.648 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.6214, allocations: 374.8 kB / 435.2 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002329/0.6238, allocations: 0.773 MB / 436 MB, free: 2.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002953/0.6268, allocations: 1.289 MB / 437.3 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002933/0.6297, allocations: 0.9901 MB / 438.3 MB, free: 15.99 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.38e-05/0.6298, allocations: 4 kB / 438.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.007367/0.6372, allocations: 2.35 MB / 440.6 MB, free: 13.61 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.6373, allocations: 13.41 kB / 440.7 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.055e-05/0.6373, allocations: 24 kB / 440.7 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.6385, allocations: 239.2 kB / 440.9 MB, free: 13.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003219/0.6417, allocations: 423.2 kB / 441.3 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004426/0.6462, allocations: 3.041 MB / 444.4 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002518/0.6487, allocations: 131.8 kB / 444.5 MB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003464/0.6491, allocations: 68 kB / 444.6 MB, free: 9.406 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002489/0.6516, allocations: 0.8134 MB / 445.4 MB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006856/0.6523, allocations: 185.7 kB / 445.6 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006279/0.6586, allocations: 2.043 MB / 447.6 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.538e-05/0.6587, allocations: 15.95 kB / 447.6 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.6587, allocations: 8.281 kB / 447.6 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-05/0.6588, allocations: 3.984 kB / 447.6 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/0.6734, allocations: 4.719 MB / 452.3 MB, free: 1.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/0.6735, allocations: 4.281 kB / 452.4 MB, free: 1.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00237/0.6758, allocations: 263.6 kB / 452.6 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.6769, allocations: 203.2 kB / 452.8 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002353/0.6772, allocations: 31.94 kB / 452.8 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004138/0.6813, allocations: 3.014 MB / 455.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.84e-06/0.6814, allocations: 0 / 455.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00889/0.6903, allocations: 3.277 MB / 459.1 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/0.6919, allocations: 422.7 kB / 459.5 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005672/0.6925, allocations: 27.98 kB / 459.6 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/0.6945, allocations: 95.94 kB / 459.7 MB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00039/0.6949, allocations: 88.78 kB / 459.8 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/0.6951, allocations: 32 kB / 459.8 MB, free: 9.637 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003272/0.6984, allocations: 1.165 MB / 460.9 MB, free: 8.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6984, allocations: 0 / 460.9 MB, free: 8.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002861/0.7013, allocations: 488 kB / 461.4 MB, free: 8.004 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009811/0.7111, allocations: 4.468 MB / 465.9 MB, free: 3.434 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006665/0.7178, allocations: 2.345 MB / 468.2 MB, free: 1.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/0.7179, allocations: 0 / 468.2 MB, free: 1.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003639/0.7215, allocations: 1.34 MB / 469.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003881/0.7255, allocations: 456.3 kB / 470 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0509/0.7764, allocations: 26.24 MB / 496.3 MB, free: 3.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003278/0.7797, allocations: 2.02 MB / 498.3 MB, free: 1.766 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002714/0.7825, allocations: 1.023 MB / 499.3 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7825, allocations: 3.938 kB / 499.3 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.178/4.961, allocations: 90.84 MB / 0.5763 GB, free: 56.82 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat