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.00103/0.00103, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000949/0.0009489, allocations: 89.38 kB / 292.1 MB, free: 5.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.669e-05/2.684e-05, allocations: 4 kB / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4265/0.5331, allocations: 112.5 MB / 0.5026 GB, free: 9.617 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/0.5335, allocations: 83.55 kB / 0.5026 GB, free: 9.574 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2706/0.8041, allocations: 70.8 MB / 0.5718 GB, free: 3.379 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.8041, allocations: 0 / 0.5718 GB, free: 3.379 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002467/0.8044, allocations: 63.94 kB / 0.5718 GB, free: 3.316 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.005984/0.8104, allocations: 2.415 MB / 0.5742 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.8104, allocations: 8.031 kB / 0.5742 GB, free: 0.8438 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008762/0.8113, allocations: 359 kB / 0.5746 GB, free: 496 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002145/0.8135, allocations: 491.7 kB / 0.575 GB, free: 0 / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2968/1.11, allocations: 1.862 MB / 0.5768 GB, free: 80.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/1.11, allocations: 195.1 kB / 0.577 GB, free: 80.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003295/1.111, allocations: 259.2 kB / 0.5773 GB, free: 80.44 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003613/1.114, allocations: 2.373 MB / 0.5796 GB, free: 80.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.809e-05/1.114, allocations: 16.47 kB / 0.5796 GB, free: 80.08 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001737/1.115, allocations: 108.5 kB / 0.5797 GB, free: 80.08 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-05/1.115, allocations: 62.03 kB / 0.5798 GB, free: 80.08 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002469/1.117, allocations: 1.544 MB / 0.5813 GB, free: 80.05 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/1.128, allocations: 10.74 MB / 0.5918 GB, free: 75.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008748/1.129, allocations: 0.9327 MB / 0.5927 GB, free: 75.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000402/1.129, allocations: 340.5 kB / 0.593 GB, free: 75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/1.129, allocations: 14 kB / 0.593 GB, free: 75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/1.129, allocations: 42.72 kB / 0.5931 GB, free: 74.96 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 2.685e-06/1.129, allocations: 0 / 0.5931 GB, free: 74.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.003041/1.132, allocations: 2.242 MB / 0.5953 GB, free: 74.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/1.132, allocations: 164.7 kB / 0.5954 GB, free: 73.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00197/1.134, allocations: 1.811 MB / 0.5972 GB, free: 73.71 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/1.134, allocations: 41.61 kB / 0.5972 GB, free: 73.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006881/1.135, allocations: 1.477 MB / 0.5987 GB, free: 73.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/1.135, allocations: 350 kB / 0.599 GB, free: 72.81 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/1.135, allocations: 34.75 kB / 0.599 GB, free: 72.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.602e-05/1.135, allocations: 372.1 kB / 0.5994 GB, free: 72.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004744/1.136, allocations: 332.1 kB / 0.5997 GB, free: 72.51 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007708/1.137, allocations: 1.212 MB / 0.6009 GB, free: 71.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006947/1.137, allocations: 0.5597 MB / 0.6014 GB, free: 71.37 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/1.137, allocations: 9.906 kB / 0.6014 GB, free: 71.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002241/1.14, allocations: 1.788 MB / 0.6032 GB, free: 71.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002023/1.142, allocations: 12.48 MB / 0.6154 GB, free: 57.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.775e-05/1.142, allocations: 30.5 kB / 0.6154 GB, free: 57.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005153/1.142, allocations: 172.8 kB / 0.6156 GB, free: 57.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/1.143, allocations: 421.8 kB / 0.616 GB, free: 57.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002713/1.146, allocations: 5.546 MB / 0.6214 GB, free: 52.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/1.148, allocations: 100.5 kB / 0.6215 GB, free: 52.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.736e-05/1.148, allocations: 95.75 kB / 0.6216 GB, free: 52.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/1.148, allocations: 2.906 kB / 0.6216 GB, free: 52.65 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001975/1.15, allocations: 1.557 MB / 0.6231 GB, free: 52.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/1.15, allocations: 31.06 kB / 0.6231 GB, free: 52.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003758/1.15, allocations: 172.4 kB / 0.6233 GB, free: 52.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/1.151, allocations: 419.8 kB / 0.6237 GB, free: 52.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/1.154, allocations: 5.531 MB / 0.6291 GB, free: 47.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/1.155, allocations: 87.75 kB / 0.6292 GB, free: 47.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.425e-05/1.155, allocations: 98.94 kB / 0.6293 GB, free: 47.18 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.0002615/1.156, allocations: 225 kB / 0.6295 GB, free: 47.03 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/1.156, allocations: 230.7 kB / 0.6297 GB, free: 46.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/1.157, allocations: 0.8819 MB / 0.6306 GB, free: 46.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/1.157, allocations: 8.5 kB / 0.6306 GB, free: 46.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.157, allocations: 3.094 kB / 0.6306 GB, free: 46.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/1.157, allocations: 3.422 kB / 0.6306 GB, free: 46.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004018/1.161, allocations: 3.055 MB / 0.6336 GB, free: 46.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/1.161, allocations: 13.77 kB / 0.6336 GB, free: 46.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005944/1.162, allocations: 163.6 kB / 0.6337 GB, free: 46.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003765/1.162, allocations: 131.8 kB / 0.6338 GB, free: 46.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/1.162, allocations: 24.22 kB / 0.6339 GB, free: 46.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002662/1.165, allocations: 5.355 MB / 0.6391 GB, free: 41.02 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/1.165, allocations: 10.3 kB / 0.6391 GB, free: 41.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/1.167, allocations: 1.891 MB / 0.641 GB, free: 39.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007297/1.168, allocations: 375.8 kB / 0.6413 GB, free: 39.67 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/1.168, allocations: 25.72 kB / 0.6413 GB, free: 39.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008303/1.169, allocations: 61.69 kB / 0.6414 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/1.169, allocations: 89.11 kB / 0.6415 GB, free: 39.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.857e-05/1.169, allocations: 29.91 kB / 0.6415 GB, free: 39.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002082/1.171, allocations: 1.341 MB / 0.6428 GB, free: 39.39 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.171, allocations: 0 / 0.6428 GB, free: 39.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004009/1.175, allocations: 1.002 MB / 0.6438 GB, free: 39.3 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.003061/1.178, allocations: 4.33 MB / 0.648 GB, free: 35.78 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003798/1.182, allocations: 2.703 MB / 0.6507 GB, free: 34.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.182, allocations: 4.969 kB / 0.6507 GB, free: 34.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009709/1.183, allocations: 0.8 MB / 0.6515 GB, free: 33.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002701/1.186, allocations: 0.5576 MB / 0.652 GB, free: 33.45 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007509/1.194, allocations: 3.561 MB / 0.6555 GB, free: 31.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001489/1.195, allocations: 1.627 MB / 0.6571 GB, free: 30.96 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002163/1.197, allocations: 409.6 kB / 0.6575 GB, free: 30.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009233/1.198, allocations: 1.029 MB / 0.6585 GB, free: 30.02 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/1.198, allocations: 0 / 0.6585 GB, free: 30.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08533/1.284, allocations: 54.29 MB / 0.7115 GB, free: 16.39 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001445/1.284, allocations: 201.7 kB / 0.7117 GB, free: 16.17 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.08/5.364, allocations: 4 kB / 0.7117 GB, free: 16.17 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