Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001832/0.001832, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002631/0.002631, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.427/1.427, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_QuasiStatic,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 47.92 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.255, allocations: 53.36 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0141/0.2691, allocations: 11.85 MB / 443.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006379/0.2755, allocations: 3.281 MB / 447.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001409/0.2769, allocations: 39.88 kB / 447.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001974/0.2789, allocations: 0.6718 MB / 447.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002423/0.2813, allocations: 0.7251 MB / 448.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.2824, allocations: 403.5 kB / 448.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003096/0.2854, allocations: 2.245 MB / 451.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009971/0.2864, allocations: 0.6537 MB / 451.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.2878, allocations: 0.8756 MB / 452.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001479/0.2893, allocations: 0.91 MB / 453.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003355/0.2896, allocations: 216 kB / 453.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005529/0.2902, allocations: 256 kB / 454 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003757/0.2905, allocations: 438.4 kB / 454.5 MB, free: 212 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.2918, allocations: 1.015 MB / 455.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003289/0.2951, allocations: 2.693 MB / 458.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2951, allocations: 3.938 kB / 458.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.2951, allocations: 0 / 458.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.434e-05/0.2951, allocations: 0 / 458.2 MB, free: 12.48 MB / 366.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.00381/0.2989, allocations: 2.041 MB / 460.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.299, allocations: 12.03 kB / 460.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.148e-05/0.299, allocations: 39.27 kB / 460.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002472/0.2993, allocations: 216.1 kB / 460.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007692/0.3, allocations: 267.6 kB / 460.7 MB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.3017, allocations: 0.9725 MB / 461.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.864e-05/0.3018, allocations: 119 kB / 461.8 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/0.3021, allocations: 163.9 kB / 462 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00242/0.3045, allocations: 1.483 MB / 463.5 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.141e-05/0.3045, allocations: 15.89 kB / 463.5 MB, free: 7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.3046, allocations: 68 kB / 463.5 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.3047, allocations: 39.98 kB / 463.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001902/0.3066, allocations: 0.9708 MB / 464.6 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008618/0.3152, allocations: 6.38 MB / 470.9 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008115/0.316, allocations: 384.1 kB / 471.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004227/0.3164, allocations: 206.1 kB / 471.5 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.3165, allocations: 4.438 kB / 471.5 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005758/0.317, allocations: 272.8 kB / 471.8 MB, free: 14.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.004e-06/0.317, allocations: 0 / 471.8 MB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.00316/0.3202, allocations: 1.557 MB / 473.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.3203, allocations: 158.7 kB / 473.5 MB, free: 12.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001727/0.322, allocations: 1.281 MB / 474.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.3221, allocations: 37.7 kB / 474.8 MB, free: 11.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007126/0.3228, allocations: 0.8933 MB / 475.7 MB, free: 10.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.323, allocations: 214.3 kB / 475.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/0.3232, allocations: 230.7 kB / 476.1 MB, free: 9.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3234, allocations: 353.9 kB / 476.5 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/0.3239, allocations: 230.5 kB / 476.7 MB, free: 9.266 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009284/0.3248, allocations: 0.8034 MB / 477.5 MB, free: 8.191 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.3263, allocations: 1.109 MB / 478.6 MB, free: 6.812 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.467e-06/0.3263, allocations: 8 kB / 478.6 MB, free: 6.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00206/0.3284, allocations: 1.176 MB / 479.8 MB, free: 5.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.857e-05/0.3284, allocations: 49.62 kB / 479.9 MB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/0.3285, allocations: 20 kB / 479.9 MB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002366/0.3287, allocations: 65.64 kB / 479.9 MB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007527/0.3294, allocations: 268 kB / 480.2 MB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.3316, allocations: 2.586 MB / 482.8 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000879/0.3325, allocations: 63.94 kB / 482.9 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.3326, allocations: 60 kB / 482.9 MB, free: 2.27 MB / 382.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.0005515/0.3332, allocations: 357.4 kB / 483.3 MB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.3334, allocations: 143 kB / 483.4 MB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/0.3344, allocations: 0.5513 MB / 484 MB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.3344, allocations: 4 kB / 484 MB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3344, allocations: 4 kB / 484 MB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3344, allocations: 3.984 kB / 484 MB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.3373, allocations: 1.83 MB / 485.8 MB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.3373, allocations: 8.062 kB / 485.8 MB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004133/0.3378, allocations: 99.89 kB / 485.9 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000143/0.3379, allocations: 49.62 kB / 485.9 MB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.3379, allocations: 16 kB / 486 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001985/0.3399, allocations: 2.539 MB / 488.5 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.3399, allocations: 8 kB / 488.5 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.3414, allocations: 0.9306 MB / 489.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004336/0.3418, allocations: 183.1 kB / 489.6 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.3419, allocations: 19.98 kB / 489.6 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004959/0.3424, allocations: 23.98 kB / 489.7 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3426, allocations: 59.84 kB / 489.7 MB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.3426, allocations: 19.94 kB / 489.7 MB, free: 10.99 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001281/0.3439, allocations: 0.8539 MB / 490.6 MB, free: 10.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3439, allocations: 0 / 490.6 MB, free: 10.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001086/0.345, allocations: 303.9 kB / 490.9 MB, free: 9.836 MB / 398.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.3468, allocations: 1.507 MB / 492.4 MB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.3485, allocations: 0.8935 MB / 493.3 MB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.3485, allocations: 4 kB / 493.3 MB, free: 7.316 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006935/0.3492, allocations: 461.8 kB / 493.7 MB, free: 6.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.3507, allocations: 348.1 kB / 494.1 MB, free: 6.512 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/0.3674, allocations: 10.93 MB / 0.4932 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008957/0.3683, allocations: 1.178 MB / 0.4943 GB, free: 9.555 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006338/0.3689, allocations: 171.3 kB / 0.4945 GB, free: 9.383 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007284/0.3696, allocations: 0.5735 MB / 0.4951 GB, free: 8.809 MB / 414.1 MB Notification: Performance of SimCode: time 2.345e-06/0.3696, allocations: 4 kB / 0.4951 GB, free: 8.805 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07377/0.4434, allocations: 28.82 MB / 0.5232 GB, free: 12.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/13.88, allocations: 11.86 kB / 0.5232 GB, free: 12.3 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: 20.366130081005394]