Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008444/0.0008444, allocations: 174.2 kB / 16.72 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.18/1.18, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007148/0.0007148, allocations: 93.36 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002813, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1867, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006088/0.1929, allocations: 7.173 MB / 382.4 MB, free: 39.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00371/0.1966, allocations: 2.571 MB / 384.9 MB, free: 37.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007227/0.1974, allocations: 26.72 kB / 385 MB, free: 37.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.1985, allocations: 440.5 kB / 385.4 MB, free: 37.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000805/0.1993, allocations: 355.1 kB / 385.7 MB, free: 37.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005469/0.1998, allocations: 245.2 kB / 386 MB, free: 36.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001216/0.2011, allocations: 1.386 MB / 387.4 MB, free: 36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006979/0.2018, allocations: 0.5267 MB / 387.9 MB, free: 35.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005953/0.2024, allocations: 446 kB / 388.3 MB, free: 35.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000396/0.2028, allocations: 0.4928 MB / 388.8 MB, free: 35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.177e-05/0.2029, allocations: 60 kB / 388.9 MB, free: 34.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002386/0.2031, allocations: 99.92 kB / 389 MB, free: 34.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.2032, allocations: 195 kB / 389.2 MB, free: 34.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003414/0.2036, allocations: 0.573 MB / 389.7 MB, free: 34.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007522/0.2043, allocations: 1.324 MB / 391.1 MB, free: 32.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2044, allocations: 4 kB / 391.1 MB, free: 32.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2044, allocations: 0 / 391.1 MB, free: 32.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.2044, allocations: 0 / 391.1 MB, free: 32.73 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001628/0.206, allocations: 1.304 MB / 392.4 MB, free: 31.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2061, allocations: 8.031 kB / 392.4 MB, free: 31.37 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001183/0.2062, allocations: 152.3 kB / 392.5 MB, free: 31.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004768/0.2067, allocations: 195.2 kB / 392.7 MB, free: 31.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008385/0.2075, allocations: 0.7822 MB / 393.5 MB, free: 30.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.2076, allocations: 73.94 kB / 393.6 MB, free: 30.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.2077, allocations: 99.98 kB / 393.7 MB, free: 30.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.2089, allocations: 0.9536 MB / 394.6 MB, free: 29.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.209, allocations: 7.844 kB / 394.6 MB, free: 29.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.379e-05/0.209, allocations: 44 kB / 394.7 MB, free: 28.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.2091, allocations: 24 kB / 394.7 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009688/0.21, allocations: 0.6402 MB / 395.3 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.2138, allocations: 4.135 MB / 399.5 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008549/0.2146, allocations: 463.8 kB / 399.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.2149, allocations: 176.6 kB / 400.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.2149, allocations: 7.75 kB / 400.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.411e-05/0.215, allocations: 38.55 kB / 400.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.974e-06/0.215, allocations: 0 / 400.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001866/0.2168, allocations: 1.353 MB / 401.5 MB, free: 21.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.2169, allocations: 106.8 kB / 401.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008291/0.2177, allocations: 0.894 MB / 402.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.2178, allocations: 33.7 kB / 402.5 MB, free: 20.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.218, allocations: 0.5875 MB / 403.1 MB, free: 20.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.54e-05/0.2181, allocations: 149.9 kB / 403.3 MB, free: 20.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.286e-05/0.2181, allocations: 16 kB / 403.3 MB, free: 20 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.809e-05/0.2182, allocations: 337.9 kB / 403.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.2184, allocations: 169.9 kB / 403.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.2188, allocations: 489.7 kB / 404.3 MB, free: 18.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000631/0.2194, allocations: 0.6909 MB / 404.9 MB, free: 18.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2195, allocations: 4 kB / 404.9 MB, free: 18.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009278/0.2204, allocations: 0.7543 MB / 405.7 MB, free: 17.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.2205, allocations: 400.9 kB / 406.1 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.2205, allocations: 12 kB / 406.1 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.2207, allocations: 32.84 kB / 406.1 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004837/0.2212, allocations: 171.7 kB / 406.3 MB, free: 16.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005938/0.2218, allocations: 1.299 MB / 407.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004625/0.2222, allocations: 43.89 kB / 407.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.2223, allocations: 40.14 kB / 407.7 MB, free: 15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.478e-06/0.2223, allocations: 4 kB / 407.7 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007415/0.223, allocations: 0.6096 MB / 408.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2231, allocations: 8 kB / 408.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.912e-05/0.2231, allocations: 32.86 kB / 408.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004387/0.2236, allocations: 163.7 kB / 408.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005093/0.2241, allocations: 1.3 MB / 409.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004169/0.2245, allocations: 31.98 kB / 409.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.324e-05/0.2246, allocations: 36.09 kB / 409.9 MB, free: 12.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003324/0.2249, allocations: 348.8 kB / 410.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.051e-05/0.225, allocations: 94.78 kB / 410.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000664/0.2257, allocations: 447.2 kB / 410.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2257, allocations: 11.98 kB / 410.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-06/0.2257, allocations: 0 / 410.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.2257, allocations: 0 / 410.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.2273, allocations: 1.394 MB / 412.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2273, allocations: 4 kB / 412.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/0.2276, allocations: 83.89 kB / 412.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.302e-05/0.2277, allocations: 16.84 kB / 412.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.2277, allocations: 16 kB / 412.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005175/0.2283, allocations: 1.272 MB / 413.5 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.2283, allocations: 7.969 kB / 413.5 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008354/0.2291, allocations: 0.7311 MB / 414.3 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001997/0.2293, allocations: 200 kB / 414.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.217e-05/0.2294, allocations: 8 kB / 414.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003715/0.2298, allocations: 35.97 kB / 414.5 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/0.2299, allocations: 27.97 kB / 414.5 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.2299, allocations: 11.94 kB / 414.5 MB, free: 7.699 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006421/0.2306, allocations: 0.6016 MB / 415.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2306, allocations: 0 / 415.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000992/0.2316, allocations: 352 kB / 415.5 MB, free: 6.742 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001071/0.2326, allocations: 1.285 MB / 416.8 MB, free: 5.406 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.2339, allocations: 0.9899 MB / 417.8 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.234, allocations: 0 / 417.8 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.2343, allocations: 286.5 kB / 418 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.2355, allocations: 227.7 kB / 418.3 MB, free: 3.883 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007784/0.2433, allocations: 5.657 MB / 423.9 MB, free: 13.86 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000625/0.2439, allocations: 1.029 MB / 425 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005178/0.2445, allocations: 401.4 kB / 425.3 MB, free: 12.41 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2445, allocations: 0 / 425.3 MB, free: 12.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.61/3.855, allocations: 19.53 MB / 444.9 MB, free: 8.855 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches