Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001357/0.001357, allocations: 107.9 kB / 17.63 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 210.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2251/0.2251, allocations: 46.12 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica 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.003504/0.003504, allocations: 80.67 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1668, allocations: 62.43 MB / 480.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.01024/0.1771, allocations: 4.038 MB / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004036/0.1812, allocations: 1.491 MB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000534/0.1817, allocations: 11.94 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/0.1832, allocations: 270.5 kB / 486 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008981/0.1841, allocations: 130.8 kB / 486.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009316/0.1851, allocations: 191.7 kB / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001297/0.1864, allocations: 0.635 MB / 487 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007113/0.1871, allocations: 268.2 kB / 487.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006037/0.1878, allocations: 243 kB / 487.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005842/0.1884, allocations: 266.7 kB / 487.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001782/0.1886, allocations: 60 kB / 487.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000185/0.1888, allocations: 64 kB / 487.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.189, allocations: 127.5 kB / 488 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004706/0.1894, allocations: 286.5 kB / 488.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.1905, allocations: 0.689 MB / 488.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1906, allocations: 0 / 488.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1906, allocations: 4 kB / 488.9 MB, free: 12.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.1906, allocations: 0 / 488.9 MB, free: 12.4 MB / 366.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.002257/0.1929, allocations: 0.8377 MB / 489.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.1929, allocations: 12.03 kB / 489.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001572/0.1931, allocations: 82.7 kB / 489.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.1933, allocations: 60.28 kB / 489.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008512/0.1942, allocations: 407.5 kB / 490.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.857e-05/0.1942, allocations: 37.38 kB / 490.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.1944, allocations: 52.22 kB / 490.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.1958, allocations: 463.1 kB / 490.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/0.1958, allocations: 3.984 kB / 490.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.961e-05/0.1959, allocations: 20 kB / 490.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.1959, allocations: 12 kB / 490.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1971, allocations: 303.8 kB / 491.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004098/0.2012, allocations: 1.673 MB / 492.9 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.2027, allocations: 386 kB / 493.2 MB, free: 7.863 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004138/0.2031, allocations: 112.8 kB / 493.3 MB, free: 7.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.916e-05/0.2032, allocations: 8 kB / 493.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.949e-05/0.2032, allocations: 34.56 kB / 493.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 3.657e-06/0.2033, allocations: 0 / 493.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.00299/0.2062, allocations: 0.8894 MB / 494.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.2063, allocations: 59.41 kB / 494.3 MB, free: 6.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008276/0.2072, allocations: 393.7 kB / 494.7 MB, free: 6.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.127e-05/0.2072, allocations: 29.7 kB / 494.7 MB, free: 6.246 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003042/0.2076, allocations: 275.8 kB / 495 MB, free: 5.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.2077, allocations: 90.73 kB / 495.1 MB, free: 5.879 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.2079, allocations: 61.61 kB / 495.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.2081, allocations: 346.8 kB / 495.5 MB, free: 5.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003803/0.2085, allocations: 100.8 kB / 495.6 MB, free: 5.363 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004482/0.209, allocations: 158.6 kB / 495.8 MB, free: 5.184 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008131/0.2098, allocations: 258.7 kB / 496 MB, free: 4.906 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.2099, allocations: 3.984 kB / 496 MB, free: 4.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001268/0.2111, allocations: 346 kB / 496.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.649e-05/0.2112, allocations: 11.94 kB / 496.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.2112, allocations: 4 kB / 496.4 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/0.2115, allocations: 24.84 kB / 496.4 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/0.2121, allocations: 67.91 kB / 496.5 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.2142, allocations: 1.38 MB / 497.8 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003626/0.2146, allocations: 24.08 kB / 497.9 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.46e-05/0.2146, allocations: 11.94 kB / 497.9 MB, free: 2.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004971/0.2151, allocations: 208.3 kB / 498.1 MB, free: 2.684 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003302/0.2155, allocations: 140.9 kB / 498.2 MB, free: 2.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000662/0.2161, allocations: 243.8 kB / 498.5 MB, free: 2.254 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.005e-05/0.2162, allocations: 4 kB / 498.5 MB, free: 2.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.001019/0.2172, allocations: 321.7 kB / 498.8 MB, free: 1.926 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.2172, allocations: 8 kB / 498.8 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.2173, allocations: 96 / 498.8 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.2174, allocations: 36.97 kB / 498.8 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004592/0.2179, allocations: 71.89 kB / 498.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.2197, allocations: 1.379 MB / 0.4885 GB, free: 300 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/0.2202, allocations: 8 kB / 0.4885 GB, free: 292 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.29e-05/0.2202, allocations: 12 kB / 0.4886 GB, free: 280 kB / 366.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.0002926/0.2205, allocations: 207.7 kB / 0.4888 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.2207, allocations: 39.53 kB / 0.4888 GB, free: 28 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001832/0.2209, allocations: 43.5 kB / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.2209, allocations: 4 kB / 0.4888 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.221, allocations: 0 / 0.4888 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.221, allocations: 0 / 0.4888 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/0.2234, allocations: 0.8479 MB / 0.4897 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.2234, allocations: 3.984 kB / 0.4897 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004852/0.2239, allocations: 47.98 kB / 0.4897 GB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001643/0.2241, allocations: 32.72 kB / 0.4897 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.2242, allocations: 12.06 kB / 0.4898 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001784/0.226, allocations: 1.371 MB / 0.4911 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.226, allocations: 3.938 kB / 0.4911 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.2273, allocations: 493.5 kB / 0.4916 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.2276, allocations: 112.8 kB / 0.4917 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.918e-05/0.2277, allocations: 8 kB / 0.4917 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003662/0.228, allocations: 11.98 kB / 0.4917 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.045e-05/0.2281, allocations: 23.86 kB / 0.4917 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.2282, allocations: 12 kB / 0.4917 GB, free: 12.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005601/0.2288, allocations: 279.2 kB / 0.492 GB, free: 12.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-07/0.2288, allocations: 0 / 0.492 GB, free: 12.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001042/0.2298, allocations: 148 kB / 0.4921 GB, free: 12.34 MB / 382.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.001874/0.2317, allocations: 1.023 MB / 0.4931 GB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.2336, allocations: 0.6064 MB / 0.4937 GB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2336, allocations: 0 / 0.4937 GB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006085/0.2342, allocations: 222.6 kB / 0.4939 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.2353, allocations: 86.81 kB / 0.494 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00985/0.2452, allocations: 4.018 MB / 0.498 GB, free: 6.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000746/0.246, allocations: 0.8347 MB / 0.4988 GB, free: 5.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002608/0.2463, allocations: 39.25 kB / 0.4988 GB, free: 5.273 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.2465, allocations: 167.4 kB / 0.499 GB, free: 5.109 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2466, allocations: 4 kB / 0.499 GB, free: 5.105 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2393/0.4858, allocations: 8.189 MB / 0.507 GB, free: 40.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.61, allocations: 6.547 kB / 0.507 GB, free: 40.89 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)