Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009946/0.0009946, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008192/0.0008192, allocations: 97.83 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.231e-05, allocations: 4 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09964/0.09969, allocations: 51.48 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3743/0.474, allocations: 111.8 MB / 0.4952 GB, free: 13.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.4743, allocations: 80.45 kB / 0.4953 GB, free: 13.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.174/0.6483, allocations: 69.76 MB / 0.5634 GB, free: 12.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.6484, allocations: 0 / 0.5634 GB, free: 12.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001465/0.6485, allocations: 59.92 kB / 0.5635 GB, free: 12.26 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.004122/0.6527, allocations: 2.415 MB / 0.5658 GB, free: 9.789 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.6527, allocations: 15.97 kB / 0.5658 GB, free: 9.773 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001472/0.6542, allocations: 487.7 kB / 0.5663 GB, free: 9.293 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003236/0.6574, allocations: 1.868 MB / 0.5681 GB, free: 7.371 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.286e-05/0.6575, allocations: 84 kB / 0.5682 GB, free: 7.289 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002496/0.6578, allocations: 159.9 kB / 0.5684 GB, free: 7.133 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002521/0.6603, allocations: 1.385 MB / 0.5697 GB, free: 5.742 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003535/0.6639, allocations: 1.992 MB / 0.5717 GB, free: 3.629 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-05/0.664, allocations: 15.8 kB / 0.5717 GB, free: 3.613 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001511/0.6641, allocations: 4 kB / 0.5717 GB, free: 3.609 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.505e-05/0.6642, allocations: 67.94 kB / 0.5717 GB, free: 3.543 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2401/0.9043, allocations: 10.24 MB / 0.5817 GB, free: 75.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008057/0.9051, allocations: 0.8956 MB / 0.5826 GB, free: 75.44 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004114/0.9055, allocations: 315.3 kB / 0.5829 GB, free: 75.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.974e-05/0.9056, allocations: 14 kB / 0.5829 GB, free: 75.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.9056, allocations: 42.88 kB / 0.583 GB, free: 75.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 3.146e-06/0.9056, allocations: 2.094 kB / 0.583 GB, free: 75.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.003014/0.9086, allocations: 2.065 MB / 0.585 GB, free: 74.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.9087, allocations: 168.9 kB / 0.5852 GB, free: 74.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/0.9105, allocations: 1.455 MB / 0.5866 GB, free: 74.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.9105, allocations: 25.7 kB / 0.5866 GB, free: 74.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007634/0.9113, allocations: 1.489 MB / 0.5881 GB, free: 73.63 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.9115, allocations: 324.2 kB / 0.5884 GB, free: 73.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.251e-05/0.9115, allocations: 3.656 kB / 0.5884 GB, free: 73.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.9116, allocations: 371.4 kB / 0.5887 GB, free: 73.17 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004236/0.9121, allocations: 295.7 kB / 0.589 GB, free: 73.16 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007471/0.9128, allocations: 1.163 MB / 0.5901 GB, free: 72.06 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006659/0.9135, allocations: 0.5132 MB / 0.5906 GB, free: 72.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.9135, allocations: 9.531 kB / 0.5906 GB, free: 72.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002182/0.9157, allocations: 1.539 MB / 0.5921 GB, free: 71.85 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001966/0.9177, allocations: 12.25 MB / 0.6041 GB, free: 59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.313e-05/0.9177, allocations: 33.8 kB / 0.6041 GB, free: 59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005123/0.9183, allocations: 170.4 kB / 0.6043 GB, free: 58.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.9194, allocations: 422.3 kB / 0.6047 GB, free: 58.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00282/0.9222, allocations: 5.327 MB / 0.6099 GB, free: 54.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.9237, allocations: 57.19 kB / 0.61 GB, free: 54.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.9238, allocations: 97.81 kB / 0.6101 GB, free: 54.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.877e-06/0.9238, allocations: 3.188 kB / 0.6101 GB, free: 54.11 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00182/0.9257, allocations: 1.288 MB / 0.6113 GB, free: 54.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.593e-05/0.9257, allocations: 35.42 kB / 0.6114 GB, free: 54.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003784/0.9261, allocations: 165.8 kB / 0.6115 GB, free: 54.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.9271, allocations: 413.4 kB / 0.6119 GB, free: 54.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.9297, allocations: 5.335 MB / 0.6171 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.9312, allocations: 55 kB / 0.6172 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.9313, allocations: 92.5 kB / 0.6173 GB, free: 49.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 222 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003326/0.9317, allocations: 182 kB / 0.6174 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001133/0.9328, allocations: 0.7749 MB / 0.6182 GB, free: 48.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.933, allocations: 206.6 kB / 0.6184 GB, free: 48.76 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001253/0.9343, allocations: 0.7807 MB / 0.6191 GB, free: 48.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.9343, allocations: 13 kB / 0.6192 GB, free: 48.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.9343, allocations: 2.125 kB / 0.6192 GB, free: 48.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.9343, allocations: 6.609 kB / 0.6192 GB, free: 48.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003708/0.938, allocations: 2.66 MB / 0.6218 GB, free: 48.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.9381, allocations: 3.375 kB / 0.6218 GB, free: 48.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006036/0.9387, allocations: 173.1 kB / 0.6219 GB, free: 48.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004263/0.9391, allocations: 122.6 kB / 0.6221 GB, free: 47.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.9392, allocations: 11.78 kB / 0.6221 GB, free: 47.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002985/0.9422, allocations: 5.143 MB / 0.6271 GB, free: 43.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.886e-06/0.9422, allocations: 13.19 kB / 0.6271 GB, free: 43.18 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.9444, allocations: 1.746 MB / 0.6288 GB, free: 42.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007345/0.9452, allocations: 343.6 kB / 0.6291 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002327/0.9454, allocations: 13.38 kB / 0.6291 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007996/0.9462, allocations: 47.14 kB / 0.6292 GB, free: 41.87 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.9464, allocations: 88.06 kB / 0.6293 GB, free: 41.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.932e-05/0.9464, allocations: 30.41 kB / 0.6293 GB, free: 41.85 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00154/0.948, allocations: 1.045 MB / 0.6303 GB, free: 41.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.948, allocations: 0 / 0.6303 GB, free: 41.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003454/0.9514, allocations: 0.859 MB / 0.6312 GB, free: 41.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002616/0.9541, allocations: 4.193 MB / 0.6353 GB, free: 38.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003362/0.9574, allocations: 2.466 MB / 0.6377 GB, free: 37.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.9575, allocations: 7.75 kB / 0.6377 GB, free: 37.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.9582, allocations: 0.747 MB / 0.6384 GB, free: 37.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002818/0.961, allocations: 486.9 kB / 0.6389 GB, free: 37.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008963/0.97, allocations: 3.418 MB / 0.6422 GB, free: 35.75 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/0.9713, allocations: 1.626 MB / 0.6438 GB, free: 34.98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002147/0.9734, allocations: 375.8 kB / 0.6442 GB, free: 34.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009349/0.9744, allocations: 1.021 MB / 0.6451 GB, free: 34.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/0.9744, allocations: 0 / 0.6451 GB, free: 34.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08432/1.059, allocations: 44.06 MB / 0.6882 GB, free: 32.2 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/1.059, allocations: 167.5 kB / 0.6883 GB, free: 32.01 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.582/4.641, allocations: 6.781 kB / 0.6883 GB, free: 32.01 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat does not exist to compare? outputFormat=mat