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.001484/0.001484, allocations: 104.9 kB / 21.96 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.0016/0.0016, 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.332/1.332, allocations: 207.7 MB / 236.1 MB, free: 9.797 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_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.00167/0.00167, allocations: 51.92 kB / 348 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2521, allocations: 49.15 MB / 397.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.009325/0.2614, allocations: 10.14 MB / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005225/0.2666, allocations: 3.048 MB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.2677, allocations: 43.44 kB / 410.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001621/0.2693, allocations: 0.6264 MB / 411 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001694/0.271, allocations: 0.728 MB / 411.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008343/0.2718, allocations: 399.7 kB / 412.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002507/0.2743, allocations: 2.256 MB / 414.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009749/0.2753, allocations: 0.6556 MB / 415 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001114/0.2764, allocations: 0.8721 MB / 415.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001077/0.2775, allocations: 0.9092 MB / 416.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002206/0.2777, allocations: 214.1 kB / 417 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004203/0.2781, allocations: 259 kB / 417.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003575/0.2785, allocations: 434.2 kB / 417.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008394/0.2793, allocations: 0.8202 MB / 418.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002731/0.2821, allocations: 2.711 MB / 421.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2821, allocations: 0 / 421.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2821, allocations: 0 / 421.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.663e-05/0.2821, allocations: 0 / 421.2 MB, free: 8.957 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.003416/0.2855, allocations: 2.043 MB / 423.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2856, allocations: 14.95 kB / 423.3 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.262e-05/0.2856, allocations: 40.39 kB / 423.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002533/0.2859, allocations: 221.5 kB / 423.5 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007677/0.2866, allocations: 268.7 kB / 423.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/0.2883, allocations: 0.9683 MB / 424.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.674e-05/0.2884, allocations: 121.8 kB / 424.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002023/0.2886, allocations: 156.9 kB / 425 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.2911, allocations: 1.584 MB / 426.6 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.568e-05/0.2912, allocations: 11.55 kB / 426.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/0.2913, allocations: 63.25 kB / 426.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.841e-05/0.2913, allocations: 38.16 kB / 426.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001853/0.2932, allocations: 0.978 MB / 427.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007984/0.3012, allocations: 5.94 MB / 433.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008171/0.302, allocations: 368.6 kB / 434 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004263/0.3024, allocations: 210.1 kB / 434.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.3024, allocations: 4.438 kB / 434.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005844/0.303, allocations: 320.2 kB / 434.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.695e-06/0.303, allocations: 0 / 434.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003325/0.3064, allocations: 1.56 MB / 436.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.3065, allocations: 166.7 kB / 436.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/0.3082, allocations: 1.281 MB / 437.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.3082, allocations: 37.7 kB / 437.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007426/0.309, allocations: 0.8894 MB / 438.5 MB, free: 9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/0.3092, allocations: 214.3 kB / 438.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002937/0.3095, allocations: 222.8 kB / 438.9 MB, free: 8.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3096, allocations: 353.9 kB / 439.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004716/0.3101, allocations: 256.2 kB / 439.5 MB, free: 7.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.3111, allocations: 0.9366 MB / 440.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.3125, allocations: 1.113 MB / 441.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.3125, allocations: 12 kB / 441.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001975/0.3145, allocations: 1.205 MB / 442.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.561e-05/0.3146, allocations: 41.64 kB / 442.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-05/0.3146, allocations: 20.69 kB / 442.8 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002211/0.3148, allocations: 69.7 kB / 442.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000776/0.3156, allocations: 267.5 kB / 443.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.3177, allocations: 2.566 MB / 445.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009243/0.3186, allocations: 67.92 kB / 445.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.659e-05/0.3187, allocations: 56 kB / 445.8 MB, free: 0.7656 MB / 350.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.0005463/0.3193, allocations: 361.4 kB / 446.2 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3194, allocations: 143 kB / 446.3 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.3205, allocations: 0.5436 MB / 446.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3205, allocations: 4.094 kB / 446.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3205, allocations: 0 / 446.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.3205, allocations: 7.969 kB / 446.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002663/0.3231, allocations: 1.709 MB / 448.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3231, allocations: 7.938 kB / 448.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004159/0.3236, allocations: 104.4 kB / 448.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001488/0.3237, allocations: 45.69 kB / 448.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.3237, allocations: 16 kB / 448.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001954/0.3257, allocations: 2.539 MB / 451.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/0.3257, allocations: 11.92 kB / 451.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.3271, allocations: 0.9265 MB / 452.2 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003941/0.3275, allocations: 191.1 kB / 452.4 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.3277, allocations: 16 kB / 452.4 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005185/0.3282, allocations: 31.97 kB / 452.5 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.3283, allocations: 59.58 kB / 452.5 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.3283, allocations: 19.98 kB / 452.6 MB, free: 9.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.3295, allocations: 0.8461 MB / 453.4 MB, free: 8.754 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3295, allocations: 4 kB / 453.4 MB, free: 8.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001067/0.3306, allocations: 304 kB / 453.7 MB, free: 8.453 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.001848/0.3324, allocations: 1.507 MB / 455.2 MB, free: 6.871 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.3339, allocations: 0.9148 MB / 456.1 MB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/0.3339, allocations: 4 kB / 456.1 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007028/0.3346, allocations: 461 kB / 456.6 MB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/0.3361, allocations: 333.9 kB / 456.9 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01545/0.3515, allocations: 11.05 MB / 467.9 MB, free: 9.223 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006481/0.3522, allocations: 0.5927 MB / 468.5 MB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005632/0.3528, allocations: 171.3 kB / 468.7 MB, free: 8.422 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007206/0.3535, allocations: 0.5735 MB / 469.3 MB, free: 7.848 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3535, allocations: 0 / 469.3 MB, free: 7.848 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06822/0.4217, allocations: 29.94 MB / 499.2 MB, free: 9.793 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.82, allocations: 0 / 499.2 MB, free: 9.793 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.901583592989482]