Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.00556/0.00556, allocations: 114 kB / 21.97 MB, free: 5.23 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.001598/0.001598, allocations: 207.5 kB / 25.27 MB, free: 3.246 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.306/1.306, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 179] 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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.001638/0.001638, allocations: 52.39 kB / 348 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.231, allocations: 49.16 MB / 397.1 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.009766/0.2408, allocations: 11.77 MB / 408.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006491/0.2473, allocations: 3.228 MB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.2489, allocations: 43.19 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001988/0.2509, allocations: 0.6754 MB / 412.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002607/0.2535, allocations: 0.7323 MB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.2546, allocations: 401.8 kB / 414 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003082/0.2577, allocations: 2.248 MB / 416.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.2588, allocations: 0.6566 MB / 416.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.2602, allocations: 0.8763 MB / 417.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001205/0.2614, allocations: 0.9034 MB / 418.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002399/0.2616, allocations: 216.3 kB / 418.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000445/0.2621, allocations: 255 kB / 419.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003566/0.2624, allocations: 430.8 kB / 419.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009449/0.2634, allocations: 1.018 MB / 420.6 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002918/0.2663, allocations: 2.692 MB / 423.3 MB, free: 6.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2663, allocations: 0 / 423.3 MB, free: 6.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2663, allocations: 0 / 423.3 MB, free: 6.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.725e-05/0.2664, allocations: 1.125 kB / 423.3 MB, free: 6.945 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003959/0.2703, allocations: 2.034 MB / 425.3 MB, free: 5.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.2704, allocations: 14.64 kB / 425.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.396e-05/0.2704, allocations: 39.95 kB / 425.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002469/0.2707, allocations: 229.6 kB / 425.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008157/0.2715, allocations: 265.5 kB / 425.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.2733, allocations: 0.9751 MB / 426.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.813e-05/0.2733, allocations: 121.9 kB / 426.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000197/0.2735, allocations: 157.7 kB / 427.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002455/0.276, allocations: 1.482 MB / 428.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-05/0.2761, allocations: 15.31 kB / 428.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.2762, allocations: 66.72 kB / 428.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/0.2762, allocations: 42.08 kB / 428.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.278, allocations: 0.9678 MB / 429.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009009/0.287, allocations: 6.384 MB / 436 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008413/0.2879, allocations: 368.2 kB / 436.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004376/0.2883, allocations: 202.1 kB / 436.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.981e-05/0.2884, allocations: 12.44 kB / 436.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005337/0.2889, allocations: 272.7 kB / 436.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 4.007e-06/0.2889, allocations: 3.984 kB / 436.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003473/0.2924, allocations: 1.56 MB / 438.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.2925, allocations: 162.7 kB / 438.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.2942, allocations: 1.281 MB / 439.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.2942, allocations: 37.7 kB / 439.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000714/0.2949, allocations: 0.8972 MB / 440.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.2951, allocations: 214.3 kB / 441 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00028/0.2954, allocations: 218.8 kB / 441.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.2955, allocations: 353.9 kB / 441.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004512/0.296, allocations: 230.5 kB / 441.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000892/0.2969, allocations: 0.8073 MB / 442.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.2983, allocations: 1.109 MB / 443.7 MB, free: 3.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.2983, allocations: 15.94 kB / 443.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001965/0.3003, allocations: 1.172 MB / 444.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.3003, allocations: 46.33 kB / 445 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.3003, allocations: 16 kB / 445 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002203/0.3006, allocations: 69.69 kB / 445 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000784/0.3013, allocations: 267.6 kB / 445.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/0.3034, allocations: 2.562 MB / 447.9 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000984/0.3043, allocations: 72.02 kB / 447.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.053e-05/0.3044, allocations: 64 kB / 448 MB, free: 14.87 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005312/0.305, allocations: 353.3 kB / 448.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.3051, allocations: 147 kB / 448.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00103/0.3062, allocations: 0.5435 MB / 449 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.3062, allocations: 7.984 kB / 449 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3062, allocations: 0 / 449 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3062, allocations: 0 / 449 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002726/0.3089, allocations: 1.838 MB / 450.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.3089, allocations: 4 kB / 450.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.3093, allocations: 107.8 kB / 451 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000144/0.3095, allocations: 45.7 kB / 451 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.3095, allocations: 16.36 kB / 451 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/0.3114, allocations: 2.55 MB / 453.6 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3114, allocations: 4 kB / 453.6 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.3129, allocations: 0.9304 MB / 454.5 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000425/0.3133, allocations: 187 kB / 454.7 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.3134, allocations: 16 kB / 454.7 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005407/0.314, allocations: 35.97 kB / 454.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.3141, allocations: 63.45 kB / 454.8 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.3141, allocations: 20 kB / 454.8 MB, free: 7.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001174/0.3153, allocations: 0.8461 MB / 455.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3153, allocations: 0 / 455.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001098/0.3164, allocations: 304 kB / 456 MB, free: 6.426 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.001828/0.3182, allocations: 1.499 MB / 457.5 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.3197, allocations: 0.8974 MB / 458.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.3197, allocations: 8.062 kB / 458.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006902/0.3204, allocations: 461 kB / 458.8 MB, free: 3.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.322, allocations: 337.9 kB / 459.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01611/0.3381, allocations: 10.93 MB / 470.1 MB, free: 7.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009096/0.339, allocations: 1.178 MB / 471.3 MB, free: 6.152 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006138/0.3397, allocations: 171.3 kB / 471.5 MB, free: 5.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007228/0.3404, allocations: 0.5696 MB / 472 MB, free: 5.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.3404, allocations: 0 / 472 MB, free: 5.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07003/0.4104, allocations: 28.8 MB / 0.4891 GB, free: 8.516 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.68, allocations: 8.016 kB / 0.4891 GB, free: 8.508 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.694027533987537]