Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001252/0.001252, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001273/0.001273, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2184/0.2184, allocations: 46.12 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 83.84 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3215, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005345/0.3269, allocations: 4.03 MB / 0.5345 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.3292, allocations: 1.49 MB / 0.536 GB, free: 8.969 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002293/0.3294, allocations: 13.56 kB / 0.536 GB, free: 8.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006352/0.33, allocations: 257.7 kB / 0.5363 GB, free: 8.777 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.3303, allocations: 142.6 kB / 0.5364 GB, free: 8.648 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.3307, allocations: 187.5 kB / 0.5366 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006564/0.3314, allocations: 0.6409 MB / 0.5372 GB, free: 8.082 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003896/0.3318, allocations: 260.1 kB / 0.5374 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003217/0.3321, allocations: 239 kB / 0.5377 GB, free: 7.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.3324, allocations: 259.6 kB / 0.5379 GB, free: 7.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.891e-05/0.3325, allocations: 65.22 kB / 0.538 GB, free: 7.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.644e-05/0.3326, allocations: 65.94 kB / 0.538 GB, free: 7.586 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.3327, allocations: 129.5 kB / 0.5382 GB, free: 7.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002582/0.333, allocations: 288.7 kB / 0.5384 GB, free: 7.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007678/0.3338, allocations: 0.7146 MB / 0.5391 GB, free: 6.703 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3338, allocations: 5.188 kB / 0.5392 GB, free: 6.699 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3338, allocations: 0 / 0.5392 GB, free: 6.699 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.497e-06/0.3338, allocations: 0 / 0.5392 GB, free: 6.699 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001377/0.3352, allocations: 0.8483 MB / 0.54 GB, free: 5.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3352, allocations: 9.938 kB / 0.54 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.3353, allocations: 85.12 kB / 0.5401 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.823e-05/0.3354, allocations: 71.55 kB / 0.5401 GB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005906/0.336, allocations: 416.1 kB / 0.5405 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.3361, allocations: 35.88 kB / 0.5406 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.804e-05/0.3362, allocations: 51.42 kB / 0.5406 GB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007626/0.3369, allocations: 460.7 kB / 0.5411 GB, free: 5.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.337, allocations: 5.469 kB / 0.5411 GB, free: 5.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/0.337, allocations: 15.84 kB / 0.5411 GB, free: 5.156 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.337, allocations: 11.5 kB / 0.5411 GB, free: 5.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006243/0.3377, allocations: 307.4 kB / 0.5414 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.34, allocations: 1.656 MB / 0.543 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008438/0.3408, allocations: 392.2 kB / 0.5434 GB, free: 3.379 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.3411, allocations: 119.4 kB / 0.5435 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.3411, allocations: 2.531 kB / 0.5435 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.3411, allocations: 32.84 kB / 0.5435 GB, free: 3.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.3412, allocations: 0 / 0.5435 GB, free: 3.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001651/0.3428, allocations: 0.8971 MB / 0.5444 GB, free: 2.598 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.3429, allocations: 54.97 kB / 0.5444 GB, free: 2.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004663/0.3433, allocations: 409.8 kB / 0.5448 GB, free: 2.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.3434, allocations: 31.33 kB / 0.5449 GB, free: 2.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002011/0.3436, allocations: 278.1 kB / 0.5451 GB, free: 1.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/0.3437, allocations: 101.4 kB / 0.5452 GB, free: 1.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.232e-05/0.3438, allocations: 58.17 kB / 0.5453 GB, free: 1.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.3439, allocations: 350.9 kB / 0.5456 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.3442, allocations: 101.8 kB / 0.5457 GB, free: 1.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.3444, allocations: 156.9 kB / 0.5459 GB, free: 1.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004549/0.3449, allocations: 254.2 kB / 0.5461 GB, free: 1.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3449, allocations: 1.125 kB / 0.5461 GB, free: 1.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006394/0.3455, allocations: 356.3 kB / 0.5465 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.3456, allocations: 5.812 kB / 0.5465 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.3456, allocations: 2.344 kB / 0.5465 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001137/0.3457, allocations: 24.5 kB / 0.5465 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.346, allocations: 74.33 kB / 0.5466 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.3471, allocations: 1.384 MB / 0.5479 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.3473, allocations: 16.03 kB / 0.5479 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.3473, allocations: 15.94 kB / 0.5479 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002885/0.3476, allocations: 204.1 kB / 0.5481 GB, free: 15.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000208/0.3479, allocations: 152.7 kB / 0.5483 GB, free: 14.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000363/0.3482, allocations: 235.7 kB / 0.5485 GB, free: 14.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.446e-06/0.3482, allocations: 4 kB / 0.5485 GB, free: 14.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005443/0.3488, allocations: 334.2 kB / 0.5488 GB, free: 14.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.3488, allocations: 11.98 kB / 0.5488 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-06/0.3488, allocations: 4.25 kB / 0.5488 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.466e-05/0.3489, allocations: 20.86 kB / 0.5489 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002478/0.3492, allocations: 63.91 kB / 0.5489 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.3502, allocations: 1.383 MB / 0.5503 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.3504, allocations: 11.98 kB / 0.5503 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.3504, allocations: 11.98 kB / 0.5503 GB, free: 12.74 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.3505, allocations: 204.2 kB / 0.5505 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.905e-05/0.3506, allocations: 43.72 kB / 0.5505 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.262e-05/0.3507, allocations: 39.52 kB / 0.5506 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.3507, allocations: 4 kB / 0.5506 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3507, allocations: 0 / 0.5506 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3507, allocations: 0 / 0.5506 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.352, allocations: 0.847 MB / 0.5514 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.352, allocations: 0 / 0.5514 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002538/0.3523, allocations: 51.91 kB / 0.5514 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.56e-05/0.3523, allocations: 24.8 kB / 0.5515 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.3524, allocations: 7.984 kB / 0.5515 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.3534, allocations: 1.375 MB / 0.5528 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3534, allocations: 8.094 kB / 0.5528 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007633/0.3542, allocations: 489.5 kB / 0.5533 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.3543, allocations: 120.9 kB / 0.5534 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.342e-05/0.3543, allocations: 8 kB / 0.5534 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.3546, allocations: 15.98 kB / 0.5534 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.3546, allocations: 23.91 kB / 0.5535 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.3546, allocations: 4 kB / 0.5535 GB, free: 9.242 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000313/0.3549, allocations: 279.2 kB / 0.5537 GB, free: 8.973 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.355, allocations: 0 / 0.5537 GB, free: 8.973 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005377/0.3555, allocations: 140 kB / 0.5539 GB, free: 8.836 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001077/0.3566, allocations: 1.031 MB / 0.5549 GB, free: 7.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.3576, allocations: 0.5951 MB / 0.5554 GB, free: 7.148 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3576, allocations: 0 / 0.5554 GB, free: 7.148 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003412/0.358, allocations: 226.5 kB / 0.5557 GB, free: 6.914 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005204/0.3585, allocations: 87.47 kB / 0.5557 GB, free: 6.828 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005401/0.3639, allocations: 3.954 MB / 0.5596 GB, free: 2.723 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.3644, allocations: 0.8347 MB / 0.5604 GB, free: 1.859 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001608/0.3646, allocations: 43.27 kB / 0.5605 GB, free: 1.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.3648, allocations: 167.4 kB / 0.5606 GB, free: 1.656 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3648, allocations: 0 / 0.5606 GB, free: 1.656 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0378/0.4026, allocations: 8.37 MB / 0.5688 GB, free: 9.441 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.47, allocations: 9.703 kB / 0.5688 GB, free: 9.438 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)