Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 213.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 62.56 kB / 347.2 MB, free: 9.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2559, allocations: 49.15 MB / 396.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006956/0.2629, allocations: 6.305 MB / 402.7 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003605/0.2665, allocations: 2.222 MB / 404.9 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000654/0.2672, allocations: 23.94 kB / 404.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.2684, allocations: 475.6 kB / 405.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008256/0.2692, allocations: 411 kB / 405.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003813/0.2696, allocations: 207.5 kB / 406 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.2706, allocations: 1.201 MB / 407.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004667/0.2711, allocations: 316.2 kB / 407.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005736/0.2716, allocations: 478.7 kB / 407.9 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004704/0.2721, allocations: 430.8 kB / 408.4 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.2722, allocations: 113.3 kB / 408.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002901/0.2725, allocations: 150 kB / 408.6 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.2727, allocations: 228.9 kB / 408.8 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003577/0.273, allocations: 453.3 kB / 409.3 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001427/0.2744, allocations: 1.449 MB / 410.7 MB, free: 104 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2744, allocations: 4 kB / 410.7 MB, free: 100 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2744, allocations: 0 / 410.7 MB, free: 100 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.2745, allocations: 0 / 410.7 MB, free: 100 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002057/0.2765, allocations: 1.203 MB / 411.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2766, allocations: 13.48 kB / 412 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.2767, allocations: 128.4 kB / 412.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004621/0.2772, allocations: 153 kB / 412.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.2782, allocations: 0.582 MB / 412.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.584e-05/0.2783, allocations: 62.41 kB / 412.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.2784, allocations: 79.03 kB / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.2797, allocations: 0.8284 MB / 413.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/0.2797, allocations: 10.16 kB / 413.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.174e-05/0.2798, allocations: 35.81 kB / 413.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.2798, allocations: 19.78 kB / 413.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000962/0.2808, allocations: 0.5168 MB / 414.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003886/0.2846, allocations: 3.039 MB / 417.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004768/0.2851, allocations: 223.9 kB / 417.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.2854, allocations: 117.6 kB / 417.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.2854, allocations: 3.625 kB / 417.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.2854, allocations: 36.81 kB / 417.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.814e-06/0.2854, allocations: 0 / 417.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001919/0.2873, allocations: 0.9128 MB / 418.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.2874, allocations: 80.02 kB / 418.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009372/0.2883, allocations: 0.7515 MB / 419.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.2884, allocations: 30.89 kB / 419.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003682/0.2887, allocations: 0.5084 MB / 420.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.984e-05/0.2888, allocations: 105.1 kB / 420.2 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.2889, allocations: 113.5 kB / 420.3 MB, free: 8.984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.2891, allocations: 378.7 kB / 420.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.2894, allocations: 128 kB / 420.8 MB, free: 8.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/0.2899, allocations: 441.6 kB / 421.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007731/0.2907, allocations: 0.5738 MB / 421.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.2907, allocations: 2.656 kB / 421.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001026/0.2917, allocations: 0.6104 MB / 422.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.2917, allocations: 17.53 kB / 422.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.2917, allocations: 9.156 kB / 422.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001354/0.2919, allocations: 31.12 kB / 422.4 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.2923, allocations: 137.8 kB / 422.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.2933, allocations: 1.281 MB / 423.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004498/0.2937, allocations: 41.62 kB / 423.9 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.2938, allocations: 29 kB / 423.9 MB, free: 5.84 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.0003103/0.2941, allocations: 237.3 kB / 424.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.2942, allocations: 73.28 kB / 424.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006416/0.2948, allocations: 331.6 kB / 424.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2948, allocations: 10.72 kB / 424.6 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.2948, allocations: 0 / 424.6 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2948, allocations: 1.281 kB / 424.6 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.2964, allocations: 0.9984 MB / 425.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2964, allocations: 3.031 kB / 425.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.2967, allocations: 60.12 kB / 425.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.597e-05/0.2968, allocations: 24.06 kB / 425.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.2968, allocations: 11.16 kB / 425.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009329/0.2977, allocations: 1.262 MB / 426.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2977, allocations: 2.594 kB / 426.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008782/0.2986, allocations: 0.5576 MB / 427.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002489/0.2988, allocations: 103.5 kB / 427.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.028e-05/0.2989, allocations: 8 kB / 427.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.2992, allocations: 15.98 kB / 427.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.2993, allocations: 35.89 kB / 427.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.2993, allocations: 8 kB / 427.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006668/0.3, allocations: 0.5029 MB / 428.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3, allocations: 0 / 428.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006715/0.3006, allocations: 160 kB / 428.3 MB, free: 2.043 MB / 334.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 (27): * Single equations (assignments): 26 * 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.001233/0.3019, allocations: 1.113 MB / 429.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008618/0.3027, allocations: 453.3 kB / 429.9 MB, free: 436 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3027, allocations: 0 / 429.9 MB, free: 436 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.3031, allocations: 235 kB / 430.1 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008735/0.304, allocations: 190.7 kB / 430.3 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008568/0.3126, allocations: 6.271 MB / 436.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.3129, allocations: 360.5 kB / 436.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003386/0.3133, allocations: 90 kB / 437 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003749/0.3136, allocations: 299.3 kB / 437.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3136, allocations: 0 / 437.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05329/0.3669, allocations: 16.93 MB / 454.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.88, allocations: 4 kB / 454.2 MB, free: 7.543 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_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_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.261074285022914]