Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001966/0.001966, allocations: 191.4 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_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_0_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.001472/0.001472, allocations: 47.94 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2516, allocations: 52.18 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01285/0.2644, allocations: 10.21 MB / 433.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00614/0.2706, allocations: 3.05 MB / 436.6 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.2722, allocations: 39.88 kB / 436.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002021/0.2742, allocations: 0.6168 MB / 437.3 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002458/0.2766, allocations: 0.7329 MB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.2778, allocations: 395.5 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003188/0.281, allocations: 2.252 MB / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.2822, allocations: 0.6498 MB / 441.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.2837, allocations: 0.8756 MB / 442.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.2854, allocations: 0.9138 MB / 443.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004675/0.2858, allocations: 216 kB / 443.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007516/0.2866, allocations: 260 kB / 443.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005083/0.2871, allocations: 430.5 kB / 444 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.2884, allocations: 0.8206 MB / 444.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002921/0.2913, allocations: 2.708 MB / 447.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2913, allocations: 0 / 447.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2913, allocations: 4 kB / 447.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.594e-05/0.2914, allocations: 4 kB / 447.5 MB, free: 6.105 MB / 350.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.003439/0.2948, allocations: 2.033 MB / 449.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.2948, allocations: 8.031 kB / 449.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.109e-05/0.2949, allocations: 47.27 kB / 449.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000261/0.2952, allocations: 220.1 kB / 449.8 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008471/0.296, allocations: 267.6 kB / 450.1 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/0.2977, allocations: 0.9609 MB / 451 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.2978, allocations: 119 kB / 451.1 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002175/0.298, allocations: 159.9 kB / 451.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002597/0.3006, allocations: 1.584 MB / 452.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.574e-05/0.3006, allocations: 15.89 kB / 452.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.3008, allocations: 64 kB / 453 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.542e-05/0.3008, allocations: 47.92 kB / 453 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.3027, allocations: 0.9669 MB / 454 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007889/0.3105, allocations: 5.948 MB / 459.9 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008128/0.3114, allocations: 368.6 kB / 460.3 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004156/0.3118, allocations: 206.1 kB / 460.5 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.3118, allocations: 4.438 kB / 460.5 MB, free: 8.562 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005738/0.3124, allocations: 324.2 kB / 460.8 MB, free: 8.211 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.304e-06/0.3124, allocations: 4 kB / 460.8 MB, free: 8.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003115/0.3155, allocations: 1.56 MB / 462.4 MB, free: 6.605 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.3156, allocations: 162.7 kB / 462.5 MB, free: 6.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.3173, allocations: 1.277 MB / 463.8 MB, free: 5.117 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.3174, allocations: 41.7 kB / 463.9 MB, free: 5.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008012/0.3182, allocations: 0.8934 MB / 464.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.3184, allocations: 214.3 kB / 465 MB, free: 3.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.3187, allocations: 218.8 kB / 465.2 MB, free: 3.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.3189, allocations: 357.9 kB / 465.5 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000471/0.3193, allocations: 256.2 kB / 465.8 MB, free: 3.125 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.3204, allocations: 0.9288 MB / 466.7 MB, free: 1.895 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.3218, allocations: 1.117 MB / 467.8 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.3219, allocations: 8 kB / 467.8 MB, free: 0.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001959/0.3238, allocations: 1.205 MB / 469 MB, free: 15.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.242e-05/0.3239, allocations: 49.58 kB / 469.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.3239, allocations: 20 kB / 469.1 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/0.3241, allocations: 69.62 kB / 469.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007642/0.3249, allocations: 259.6 kB / 469.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.3272, allocations: 2.567 MB / 472 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008213/0.328, allocations: 72.19 kB / 472.1 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-05/0.3281, allocations: 60 kB / 472.1 MB, free: 11.94 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.0005561/0.3287, allocations: 353.3 kB / 472.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.3288, allocations: 143 kB / 472.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.3299, allocations: 0.5513 MB / 473.1 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3299, allocations: 4 kB / 473.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3299, allocations: 3.938 kB / 473.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3299, allocations: 3.984 kB / 473.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002666/0.3326, allocations: 1.698 MB / 474.9 MB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3326, allocations: 4 kB / 474.9 MB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.333, allocations: 103.9 kB / 475 MB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001366/0.3331, allocations: 49.64 kB / 475 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.3332, allocations: 12 kB / 475 MB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/0.3351, allocations: 2.554 MB / 477.6 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.3351, allocations: 4 kB / 477.6 MB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.3365, allocations: 0.9308 MB / 478.5 MB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003485/0.3369, allocations: 187 kB / 478.7 MB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.337, allocations: 19.98 kB / 478.7 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005105/0.3375, allocations: 27.98 kB / 478.7 MB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3376, allocations: 59.84 kB / 478.8 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.345e-05/0.3377, allocations: 20 kB / 478.8 MB, free: 4.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001178/0.3389, allocations: 0.85 MB / 479.7 MB, free: 3.938 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3389, allocations: 0 / 479.7 MB, free: 3.938 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001032/0.3399, allocations: 300 kB / 480 MB, free: 3.645 MB / 382.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.001822/0.3417, allocations: 1.505 MB / 481.5 MB, free: 2.062 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.3432, allocations: 0.925 MB / 482.4 MB, free: 1.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.3432, allocations: 4 kB / 482.4 MB, free: 1.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006955/0.3439, allocations: 471.5 kB / 482.9 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.3453, allocations: 334.9 kB / 483.2 MB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.3613, allocations: 11.04 MB / 494.2 MB, free: 4.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006604/0.362, allocations: 0.5927 MB / 494.8 MB, free: 3.762 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005605/0.3625, allocations: 171.3 kB / 495 MB, free: 3.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000723/0.3633, allocations: 0.5734 MB / 495.6 MB, free: 3.016 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3633, allocations: 0 / 495.6 MB, free: 3.016 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06873/0.432, allocations: 29.9 MB / 0.5131 GB, free: 5.586 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.84, allocations: 8.047 kB / 0.5132 GB, free: 5.578 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 19.99439781100955]