Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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) 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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",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.0009869/0.0009869, allocations: 101 kB / 16.94 MB, free: 5.98 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.001135/0.001135, allocations: 178.1 kB / 17.82 MB, free: 5.652 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.463/1.463, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.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.0005243/0.0005247, allocations: 8 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1024, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.01438/0.1168, allocations: 13.36 MB / 341.8 MB, free: 6.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.127, allocations: 5.228 MB / 347 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002821/0.1299, allocations: 83.62 kB / 347.1 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004931/0.1348, allocations: 0.9406 MB / 348 MB, free: 324 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005815/0.1407, allocations: 1.433 MB / 349.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002557/0.1433, allocations: 0.7095 MB / 350.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006001/0.1493, allocations: 3.397 MB / 353.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003557/0.1529, allocations: 2.688 MB / 356.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.1552, allocations: 1.545 MB / 357.8 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002965/0.1582, allocations: 1.86 MB / 359.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008896/0.1591, allocations: 252 kB / 359.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001839/0.161, allocations: 435.7 kB / 360.3 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008959/0.1619, allocations: 0.9422 MB / 361.3 MB, free: 2.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001215/0.1631, allocations: 0.9057 MB / 362.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006785/0.1699, allocations: 6.533 MB / 368.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1699, allocations: 4 kB / 368.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1699, allocations: 0 / 368.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002153/0.1702, allocations: 4 kB / 368.7 MB, free: 11.52 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01185/0.182, allocations: 4.583 MB / 373.3 MB, free: 6.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.1821, allocations: 12.03 kB / 373.3 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001754/0.1839, allocations: 0.6025 MB / 373.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005413/0.1893, allocations: 1.002 MB / 374.9 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005953/0.1953, allocations: 2.645 MB / 377.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.1956, allocations: 308.1 kB / 377.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007399/0.1963, allocations: 400 kB / 378.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.186/0.3823, allocations: 5.161 MB / 383.4 MB, free: 26.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.811e-05/0.3824, allocations: 4.891 kB / 383.4 MB, free: 26.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004062/0.3828, allocations: 166.9 kB / 383.6 MB, free: 26.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001848/0.383, allocations: 169.9 kB / 383.8 MB, free: 26.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00823/0.3913, allocations: 4.452 MB / 388.2 MB, free: 26.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02418/0.4155, allocations: 16.92 MB / 405.1 MB, free: 21.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005397/0.4209, allocations: 8.416 MB / 413.5 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005548/0.4265, allocations: 4.255 MB / 417.8 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.4265, allocations: 48.38 kB / 417.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=167): time 2.766e-06/0.4265, allocations: 0 / 417.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=171): time 0.01066/0.4372, allocations: 6.568 MB / 424.4 MB, free: 4.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.4373, allocations: 77.41 kB / 424.5 MB, free: 4.184 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002531/0.4398, allocations: 2.258 MB / 426.8 MB, free: 1.898 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.44, allocations: 57.7 kB / 426.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007865/0.4408, allocations: 1.823 MB / 428.6 MB, free: 0 / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005234/0.4413, allocations: 0.5864 MB / 429.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.4414, allocations: 48 kB / 429.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.4416, allocations: 393.7 kB / 429.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.4431, allocations: 0.8905 MB / 430.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001839/0.4449, allocations: 1.572 MB / 432.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.4466, allocations: 1.164 MB / 433.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.4466, allocations: 8 kB / 433.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.004439/0.451, allocations: 2.977 MB / 436.3 MB, free: 8.184 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.4511, allocations: 12.62 kB / 436.3 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.17e-05/0.4511, allocations: 24 kB / 436.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000288/0.4514, allocations: 129.7 kB / 436.4 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001987/0.4534, allocations: 0.5666 MB / 437 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.4549, allocations: 1.826 MB / 438.8 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.4566, allocations: 119.8 kB / 438.9 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/0.4567, allocations: 95.98 kB / 439 MB, free: 5.332 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (276): * Single equations (assignments): 274 * 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: 1 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001914/0.4586, allocations: 1.193 MB / 440.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004164/0.4591, allocations: 253 kB / 440.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/0.4636, allocations: 2.598 MB / 443.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/0.4636, allocations: 21.59 kB / 443.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.4636, allocations: 4 kB / 443.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.4636, allocations: 7.969 kB / 443.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009931/0.4736, allocations: 6.088 MB / 449.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.4736, allocations: 0 / 449.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/0.4749, allocations: 319.4 kB / 449.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007535/0.4757, allocations: 320.8 kB / 449.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-05/0.4758, allocations: 46.12 kB / 449.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00586/0.4817, allocations: 6.451 MB / 456.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.4817, allocations: 4 kB / 456.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005636/0.4873, allocations: 3.939 MB / 460.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/0.4887, allocations: 0.506 MB / 460.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003194/0.489, allocations: 51.94 kB / 460.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.4902, allocations: 91.88 kB / 460.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/0.4905, allocations: 125.1 kB / 461 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.4906, allocations: 47.98 kB / 461.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002204/0.4928, allocations: 1.529 MB / 462.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4928, allocations: 0 / 462.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002189/0.495, allocations: 0.6758 MB / 463.3 MB, free: 12.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 140 * 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 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005954/0.501, allocations: 5.138 MB / 468.4 MB, free: 7.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003866/0.5049, allocations: 2.368 MB / 470.8 MB, free: 4.938 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5049, allocations: 0 / 470.8 MB, free: 4.938 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/0.507, allocations: 1.518 MB / 472.3 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002596/0.5097, allocations: 0.5442 MB / 472.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04747/0.5571, allocations: 35.4 MB / 0.4963 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00234/0.5595, allocations: 2.742 MB / 0.499 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002005/0.5616, allocations: 0.5591 MB / 0.4996 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00179/0.5634, allocations: 1.472 MB / 0.501 GB, free: 9.156 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5634, allocations: 4 kB / 0.501 GB, free: 9.152 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2436/0.807, allocations: 57.22 MB / 0.5569 GB, free: 157.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/0.8072, allocations: 220.7 kB / 0.5571 GB, free: 157.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.821/3.628, allocations: 0 / 0.5571 GB, free: 157.3 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat