Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001426/0.001425, allocations: 103.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.517/1.517, allocations: 227.7 MB / 247.1 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 64.38 kB / 307.3 MB, free: 388 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1208, allocations: 50.54 MB / 357.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01118/0.132, allocations: 8.233 MB / 366.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005243/0.1373, allocations: 2.754 MB / 368.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001384/0.1388, allocations: 23.94 kB / 368.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.1407, allocations: 0.5558 MB / 369.4 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001564/0.1423, allocations: 480.2 kB / 369.9 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006767/0.143, allocations: 263.6 kB / 370.2 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2175/0.3605, allocations: 1.496 MB / 371.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.3618, allocations: 0.5862 MB / 372.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.3629, allocations: 0.5585 MB / 372.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007512/0.3637, allocations: 0.6149 MB / 373.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002166/0.3639, allocations: 140.6 kB / 373.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000424/0.3643, allocations: 181.2 kB / 373.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.3645, allocations: 286 kB / 374 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006494/0.3652, allocations: 0.6761 MB / 374.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002011/0.3672, allocations: 1.74 MB / 376.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3672, allocations: 0 / 376.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3672, allocations: 2.094 kB / 376.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.227e-05/0.3673, allocations: 0 / 376.4 MB, free: 9.98 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002591/0.3699, allocations: 1.478 MB / 377.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3699, allocations: 16.83 kB / 377.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001714/0.3701, allocations: 149.1 kB / 378.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007882/0.3709, allocations: 203.9 kB / 378.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.3722, allocations: 0.7586 MB / 379 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.981e-05/0.3722, allocations: 79.3 kB / 379.1 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.3724, allocations: 93.3 kB / 379.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.374, allocations: 0.9462 MB / 380.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.474e-05/0.3741, allocations: 8.188 kB / 380.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-05/0.3741, allocations: 40.89 kB / 380.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.3742, allocations: 25.09 kB / 380.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.3755, allocations: 0.6485 MB / 380.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005419/0.3809, allocations: 3.943 MB / 384.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000849/0.3818, allocations: 455.5 kB / 385.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006173/0.3824, allocations: 266.6 kB / 385.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.025e-05/0.3825, allocations: 9.078 kB / 385.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.3825, allocations: 36.84 kB / 385.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.723e-06/0.3825, allocations: 0 / 385.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003057/0.3856, allocations: 1.545 MB / 387.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.394e-05/0.3856, allocations: 85.73 kB / 387.2 MB, free: 4.195 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.3869, allocations: 0.8541 MB / 388 MB, free: 3.816 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/0.387, allocations: 32.02 kB / 388.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004265/0.3874, allocations: 0.5672 MB / 388.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.3876, allocations: 160.7 kB / 388.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.3878, allocations: 132.3 kB / 388.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.436e-05/0.3879, allocations: 334.8 kB / 389.3 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.3883, allocations: 167 kB / 389.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005323/0.3888, allocations: 484.7 kB / 389.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000998/0.3898, allocations: 0.67 MB / 390.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.3898, allocations: 2.156 kB / 390.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001472/0.3913, allocations: 0.7911 MB / 391.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.3914, allocations: 8.688 kB / 391.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.3914, allocations: 9.5 kB / 391.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/0.3917, allocations: 85.98 kB / 391.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.3922, allocations: 155.7 kB / 391.6 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.395, allocations: 3.144 MB / 394.8 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008805/0.3959, allocations: 41.62 kB / 394.8 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.4e-05/0.3959, allocations: 40.11 kB / 394.8 MB, free: 14.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005262/0.3965, allocations: 260.3 kB / 395.1 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3966, allocations: 93.08 kB / 395.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001178/0.3978, allocations: 0.4938 MB / 395.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/0.3978, allocations: 4.375 kB / 395.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3979, allocations: 2.156 kB / 395.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.3979, allocations: 3.188 kB / 395.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/0.4005, allocations: 1.484 MB / 397.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.4005, allocations: 1.375 kB / 397.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.4009, allocations: 74.7 kB / 397.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002683/0.4012, allocations: 74.88 kB / 397.3 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.529e-05/0.4012, allocations: 13.42 kB / 397.3 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002917/0.4041, allocations: 3.137 MB / 400.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4042, allocations: 2.75 kB / 400.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.4056, allocations: 0.7957 MB / 401.3 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000386/0.406, allocations: 192.9 kB / 401.5 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.4062, allocations: 17.7 kB / 401.5 MB, free: 9.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/0.4066, allocations: 27.61 kB / 401.5 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.4067, allocations: 38.27 kB / 401.5 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.483e-05/0.4068, allocations: 14.72 kB / 401.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001013/0.4078, allocations: 0.5847 MB / 402.1 MB, free: 8.758 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4078, allocations: 0 / 402.1 MB, free: 8.758 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001041/0.4089, allocations: 209.1 kB / 402.3 MB, free: 8.738 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001953/0.4108, allocations: 1.365 MB / 403.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.4122, allocations: 0.7148 MB / 404.4 MB, free: 7.254 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4122, allocations: 0 / 404.4 MB, free: 7.254 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006814/0.4129, allocations: 456.6 kB / 404.9 MB, free: 6.926 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.4142, allocations: 232.8 kB / 405.1 MB, free: 6.809 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/0.4261, allocations: 7.996 MB / 413.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007523/0.4268, allocations: 1.02 MB / 414.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005131/0.4274, allocations: 111.3 kB / 414.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/0.4279, allocations: 387.3 kB / 414.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4279, allocations: 0 / 414.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06423/0.4921, allocations: 19.11 MB / 433.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.82, allocations: 11.75 kB / 433.7 MB, free: 11.59 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)