Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001053/0.001053, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002507/0.0002507, allocations: 8 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1076, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009988/0.1176, allocations: 9.67 MB / 367.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005634/0.1233, allocations: 3.225 MB / 371.1 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.1245, allocations: 35.94 kB / 371.1 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001444/0.126, allocations: 0.5207 MB / 371.7 MB, free: 284 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.216/0.342, allocations: 0.7551 MB / 372.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.3433, allocations: 249 kB / 372.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004698/0.348, allocations: 1.702 MB / 374.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.3494, allocations: 0.688 MB / 375 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00196/0.3513, allocations: 0.6754 MB / 375.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.3528, allocations: 0.7598 MB / 376.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002292/0.353, allocations: 102.8 kB / 376.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005934/0.3536, allocations: 137.2 kB / 376.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003247/0.354, allocations: 294.5 kB / 377 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006713/0.3547, allocations: 403.5 kB / 377.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003189/0.3579, allocations: 2.135 MB / 379.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3579, allocations: 0 / 379.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3579, allocations: 0 / 379.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.085e-05/0.358, allocations: 4 kB / 379.5 MB, free: 10.03 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.0044/0.3624, allocations: 1.827 MB / 381.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.3624, allocations: 15.44 kB / 381.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004026/0.3628, allocations: 221.1 kB / 381.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009693/0.3638, allocations: 251.3 kB / 381.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002393/0.3662, allocations: 1.071 MB / 382.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.3664, allocations: 117.3 kB / 383 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002855/0.3667, allocations: 165.7 kB / 383.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003276/0.3699, allocations: 1.46 MB / 384.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.779e-05/0.37, allocations: 16.27 kB / 384.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001467/0.3702, allocations: 65.62 kB / 384.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.073e-05/0.3702, allocations: 37.84 kB / 384.8 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00237/0.3726, allocations: 1.018 MB / 385.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009191/0.3818, allocations: 6.179 MB / 392 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.3832, allocations: 0.5491 MB / 392.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-05/0.3833, allocations: 7.875 kB / 392.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.3833, allocations: 52.59 kB / 392.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 3.156e-06/0.3833, allocations: 0 / 392.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.00621/0.3895, allocations: 2.274 MB / 394.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.747e-05/0.3896, allocations: 111 kB / 395 MB, free: 2.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00197/0.3916, allocations: 1.182 MB / 396.1 MB, free: 2.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.663e-05/0.3917, allocations: 36.11 kB / 396.2 MB, free: 2.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005493/0.3922, allocations: 0.8507 MB / 397 MB, free: 1.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.3924, allocations: 265.2 kB / 397.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.232e-05/0.3925, allocations: 20.19 kB / 397.3 MB, free: 1.121 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3926, allocations: 347.1 kB / 397.6 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005569/0.3931, allocations: 273.2 kB / 397.9 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008126/0.394, allocations: 0.7216 MB / 398.6 MB, free: 15.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007684/0.3947, allocations: 393.6 kB / 399 MB, free: 15.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/0.3948, allocations: 11.8 kB / 399 MB, free: 15.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.002589/0.3974, allocations: 1.211 MB / 400.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.3974, allocations: 12.41 kB / 400.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/0.3974, allocations: 16.92 kB / 400.3 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004582/0.3979, allocations: 118.9 kB / 400.4 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008806/0.3988, allocations: 262.3 kB / 400.6 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004592/0.4034, allocations: 4.195 MB / 404.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.4049, allocations: 52.77 kB / 404.9 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.565e-05/0.405, allocations: 57.11 kB / 404.9 MB, free: 10.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (138): * Single equations (assignments): 135 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001058/0.406, allocations: 359.3 kB / 405.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002594/0.4063, allocations: 141.2 kB / 405.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.4082, allocations: 0.7851 MB / 406.2 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.4082, allocations: 5.906 kB / 406.2 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4082, allocations: 6.984 kB / 406.2 MB, free: 9.816 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.4082, allocations: 3.984 kB / 406.2 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004579/0.4128, allocations: 2.175 MB / 408.4 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.637e-06/0.4129, allocations: 4.438 kB / 408.4 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005991/0.4135, allocations: 135.7 kB / 408.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004904/0.414, allocations: 110.5 kB / 408.6 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.092e-05/0.414, allocations: 23.98 kB / 408.7 MB, free: 7.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004352/0.4184, allocations: 4.313 MB / 413 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.4184, allocations: 4 kB / 413 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003249/0.4217, allocations: 1.436 MB / 414.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000899/0.4226, allocations: 255.4 kB / 414.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.4228, allocations: 16 kB / 414.7 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/0.4234, allocations: 42.64 kB / 414.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.4236, allocations: 68.38 kB / 414.8 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.724e-05/0.4236, allocations: 20 kB / 414.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.4251, allocations: 0.7805 MB / 415.6 MB, free: 344 kB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4251, allocations: 0 / 415.6 MB, free: 344 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001705/0.4268, allocations: 316 kB / 415.9 MB, free: 28 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003407/0.4302, allocations: 2.945 MB / 418.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.4324, allocations: 1.093 MB / 419.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/0.4325, allocations: 0 / 419.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.4337, allocations: 0.6866 MB / 420.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001822/0.4355, allocations: 332.3 kB / 421 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02264/0.4581, allocations: 18.51 MB / 439.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009444/0.4591, allocations: 1.247 MB / 440.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008179/0.46, allocations: 175.6 kB / 440.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007202/0.4607, allocations: 0.6047 MB / 441.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of SimCode: time 1.113e-06/0.4607, allocations: 8 kB / 441.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05509/0.5158, allocations: 27.17 MB / 468.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002215/0.5161, allocations: 231.1 kB / 468.9 MB, free: 10.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.488/3.004, allocations: 4 kB / 468.9 MB, free: 10.53 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat