Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.001306/0.001306, allocations: 101.4 kB / 21.95 MB, free: 5.219 MB / 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.001301/0.001301, allocations: 214 kB / 25.26 MB, free: 3.129 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.34/1.34, allocations: 207.7 MB / 236.1 MB, free: 9.789 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.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",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.001656/0.001656, allocations: 58.58 kB / 348 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2441, allocations: 49.16 MB / 397.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006954/0.251, allocations: 7.086 MB / 404.2 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003971/0.255, allocations: 2.492 MB / 406.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005218/0.2555, allocations: 28.97 kB / 406.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.2568, allocations: 0.5318 MB / 407.3 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008387/0.2576, allocations: 0.4918 MB / 407.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.258, allocations: 250.2 kB / 408 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.2592, allocations: 1.479 MB / 409.5 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005221/0.2597, allocations: 401.8 kB / 409.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005883/0.2603, allocations: 0.569 MB / 410.5 MB, free: 296 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006064/0.2609, allocations: 0.5967 MB / 411 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.261, allocations: 146.8 kB / 411.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003115/0.2613, allocations: 177.7 kB / 411.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002365/0.2616, allocations: 274.9 kB / 411.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005497/0.2621, allocations: 0.5373 MB / 412.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001837/0.264, allocations: 1.748 MB / 413.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.264, allocations: 4 kB / 413.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.264, allocations: 4 kB / 413.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.196e-05/0.264, allocations: 1.406 kB / 413.9 MB, free: 14.3 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002296/0.2663, allocations: 1.409 MB / 415.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2663, allocations: 13.08 kB / 415.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.637e-05/0.2664, allocations: 26.22 kB / 415.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001733/0.2665, allocations: 152.6 kB / 415.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000653/0.2672, allocations: 194.3 kB / 415.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.2684, allocations: 0.6664 MB / 416.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.707e-05/0.2685, allocations: 76.91 kB / 416.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.2686, allocations: 101.4 kB / 416.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001614/0.2702, allocations: 1.032 MB / 417.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.3e-05/0.2702, allocations: 10.02 kB / 417.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.939e-05/0.2703, allocations: 36.59 kB / 417.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.924e-05/0.2703, allocations: 23.62 kB / 417.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.2716, allocations: 0.6384 MB / 418.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005086/0.2767, allocations: 3.479 MB / 421.8 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006356/0.2773, allocations: 343.5 kB / 422.1 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005385/0.2778, allocations: 252 kB / 422.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.2779, allocations: 4.453 kB / 422.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.2779, allocations: 45.58 kB / 422.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.324e-06/0.2779, allocations: 0 / 422.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.002659/0.2806, allocations: 1.269 MB / 423.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.2806, allocations: 82.17 kB / 423.8 MB, free: 7.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/0.2818, allocations: 0.8276 MB / 424.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.595e-05/0.2818, allocations: 32.61 kB / 424.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004678/0.2823, allocations: 0.5714 MB / 425.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.2824, allocations: 159.2 kB / 425.3 MB, free: 6.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.2826, allocations: 133.4 kB / 425.5 MB, free: 5.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.2828, allocations: 336 kB / 425.8 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/0.2831, allocations: 167.8 kB / 426 MB, free: 5.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005922/0.2837, allocations: 489.1 kB / 426.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009242/0.2846, allocations: 0.6521 MB / 427.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.2847, allocations: 3.938 kB / 427.1 MB, free: 4.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001296/0.2859, allocations: 0.7748 MB / 427.9 MB, free: 3.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.286, allocations: 8.594 kB / 427.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.286, allocations: 19.94 kB / 427.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.2863, allocations: 81.62 kB / 428 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004856/0.2867, allocations: 155.7 kB / 428.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002581/0.2893, allocations: 2.919 MB / 431 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005202/0.2898, allocations: 31.98 kB / 431.1 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.2899, allocations: 40.16 kB / 431.1 MB, free: 116 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000372/0.2903, allocations: 257.9 kB / 431.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.2904, allocations: 91.39 kB / 431.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009151/0.2913, allocations: 495.5 kB / 431.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2913, allocations: 4 kB / 431.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2913, allocations: 4 kB / 432 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.2913, allocations: 3.984 kB / 432 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.2934, allocations: 1.31 MB / 433.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2934, allocations: 0 / 433.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002908/0.2937, allocations: 71.91 kB / 433.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001966/0.2939, allocations: 65.89 kB / 433.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.2939, allocations: 16 kB / 433.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00244/0.2964, allocations: 2.912 MB / 436.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2964, allocations: 3.938 kB / 436.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.2976, allocations: 0.7673 MB / 437.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002813/0.2979, allocations: 127.4 kB / 437.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.298, allocations: 19.98 kB / 437.2 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.2984, allocations: 19.98 kB / 437.3 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.807e-05/0.2984, allocations: 43.62 kB / 437.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.2985, allocations: 12 kB / 437.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008/0.2993, allocations: 0.5654 MB / 437.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2993, allocations: 0 / 437.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008376/0.3001, allocations: 200 kB / 438.1 MB, free: 8.773 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.001674/0.3018, allocations: 1.345 MB / 439.4 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.3029, allocations: 0.67 MB / 440.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3029, allocations: 0 / 440.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006492/0.3036, allocations: 434.4 kB / 440.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.3046, allocations: 231.4 kB / 440.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.3151, allocations: 7.331 MB / 448.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.3156, allocations: 413.9 kB / 448.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003819/0.316, allocations: 111.2 kB / 448.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004647/0.3165, allocations: 371.3 kB / 448.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3165, allocations: 0 / 448.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05539/0.3719, allocations: 20.64 MB / 469.6 MB, free: 8.594 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/13.02, allocations: 8 kB / 469.6 MB, free: 8.586 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.797804464004003]