Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.001031, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 206.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.234/1.234, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 54.31 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08175/0.08284, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.00776/0.09063, allocations: 7.993 MB / 365.6 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003387/0.09403, allocations: 2.649 MB / 368.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003763/0.09443, allocations: 23.94 kB / 368.3 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.09553, allocations: 0.4931 MB / 368.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007355/0.09628, allocations: 400.8 kB / 369.1 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003731/0.09666, allocations: 223.6 kB / 369.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009868/0.09766, allocations: 1.23 MB / 370.6 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006177/0.09828, allocations: 0.5331 MB / 371.1 MB, free: 404 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1243/0.2226, allocations: 488.5 kB / 371.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006431/0.2232, allocations: 0.5104 MB / 372.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001836/0.2234, allocations: 115.7 kB / 372.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002763/0.2237, allocations: 156.4 kB / 372.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.2238, allocations: 240.7 kB / 372.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004194/0.2243, allocations: 0.565 MB / 373.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.2254, allocations: 1.44 MB / 374.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2254, allocations: 0 / 374.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2254, allocations: 0 / 374.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.2254, allocations: 1.375 kB / 374.6 MB, free: 10.62 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001637/0.2271, allocations: 1.306 MB / 375.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.2271, allocations: 10.25 kB / 375.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.2272, allocations: 137.7 kB / 376.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005717/0.2278, allocations: 172.3 kB / 376.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006654/0.2285, allocations: 0.6372 MB / 376.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.2285, allocations: 60.69 kB / 376.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.844e-05/0.2286, allocations: 89.28 kB / 377 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.2297, allocations: 0.8254 MB / 377.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.2297, allocations: 1.828 kB / 377.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.633e-05/0.2298, allocations: 33 kB / 377.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.2298, allocations: 20.84 kB / 377.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008645/0.2307, allocations: 0.5415 MB / 378.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.2337, allocations: 3.585 MB / 382 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004073/0.2341, allocations: 239.3 kB / 382.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.2344, allocations: 115.1 kB / 382.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.2344, allocations: 3.062 kB / 382.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.246e-05/0.2344, allocations: 41.8 kB / 382.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.253e-06/0.2344, allocations: 0 / 382.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001534/0.2359, allocations: 1.07 MB / 383.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.236, allocations: 89.83 kB / 383.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.2367, allocations: 0.7674 MB / 384.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.2368, allocations: 34.67 kB / 384.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.237, allocations: 0.5111 MB / 384.9 MB, free: 5.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.219e-05/0.237, allocations: 103.7 kB / 385 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.2371, allocations: 122.3 kB / 385.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.028e-05/0.2372, allocations: 382 kB / 385.5 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.2375, allocations: 129.8 kB / 385.6 MB, free: 4.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.2378, allocations: 448.7 kB / 386 MB, free: 4.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005774/0.2384, allocations: 0.6125 MB / 386.7 MB, free: 3.828 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.2384, allocations: 6.25 kB / 386.7 MB, free: 3.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008837/0.2393, allocations: 0.6461 MB / 387.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2393, allocations: 13.53 kB / 387.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.2393, allocations: 15.25 kB / 387.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000115/0.2395, allocations: 34.22 kB / 387.4 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000394/0.2399, allocations: 153.2 kB / 387.5 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005821/0.2404, allocations: 1.386 MB / 388.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/0.2408, allocations: 45.67 kB / 388.9 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.45e-05/0.2409, allocations: 33.14 kB / 389 MB, free: 2.152 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.000202/0.2411, allocations: 252.5 kB / 389.2 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.554e-05/0.2412, allocations: 75.83 kB / 389.3 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005349/0.2417, allocations: 344.4 kB / 389.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.2417, allocations: 3 kB / 389.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.2417, allocations: 0 / 389.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2418, allocations: 1.031 kB / 389.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.243, allocations: 1.116 MB / 390.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.243, allocations: 1.438 kB / 390.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.2432, allocations: 67.84 kB / 390.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.88e-05/0.2433, allocations: 24.02 kB / 390.8 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.2433, allocations: 8.031 kB / 390.9 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005691/0.2439, allocations: 1.37 MB / 392.2 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.2439, allocations: 6.312 kB / 392.2 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007786/0.2447, allocations: 0.5766 MB / 392.8 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.2449, allocations: 178.7 kB / 393 MB, free: 15.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.983e-05/0.2449, allocations: 8.438 kB / 393 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.2453, allocations: 21.31 kB / 393 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.2453, allocations: 22.91 kB / 393 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.2453, allocations: 6.906 kB / 393 MB, free: 15.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005456/0.2459, allocations: 0.524 MB / 393.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.12e-07/0.2459, allocations: 1.062 kB / 393.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005443/0.2464, allocations: 173.3 kB / 393.7 MB, free: 14.91 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * 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.00107/0.2475, allocations: 1.128 MB / 394.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007385/0.2483, allocations: 499.9 kB / 395.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2483, allocations: 3.062 kB / 395.4 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003118/0.2486, allocations: 240.2 kB / 395.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008419/0.2494, allocations: 197.4 kB / 395.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007169/0.2566, allocations: 6.916 MB / 402.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.257, allocations: 0.9526 MB / 403.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002826/0.2573, allocations: 91.83 kB / 403.7 MB, free: 8.078 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003061/0.2576, allocations: 319.5 kB / 404.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2576, allocations: 0 / 404.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2886/0.5463, allocations: 15.73 MB / 419.8 MB, free: 9.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.25, allocations: 7.266 kB / 419.8 MB, free: 9.879 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches