Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001395/0.001395, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001385/0.001385, allocations: 185 kB / 23.72 MB, free: 4.719 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.373/1.373, allocations: 225.6 MB / 252.5 MB, free: 13.02 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_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 47.92 kB / 370.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2362, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01422/0.2504, allocations: 12.24 MB / 434.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005983/0.2564, allocations: 3.292 MB / 438.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/0.2576, allocations: 47.81 kB / 438.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.2593, allocations: 0.6877 MB / 438.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001896/0.2612, allocations: 0.7872 MB / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000787/0.2619, allocations: 403.5 kB / 440.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002803/0.2647, allocations: 2.416 MB / 442.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009817/0.2657, allocations: 0.6461 MB / 443.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.2669, allocations: 0.9456 MB / 444.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001201/0.2681, allocations: 0.9762 MB / 445.1 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002779/0.2684, allocations: 228 kB / 445.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005266/0.2689, allocations: 272 kB / 445.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003643/0.2693, allocations: 454.3 kB / 446 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.2704, allocations: 1.085 MB / 447.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003066/0.2734, allocations: 2.841 MB / 449.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.2735, allocations: 0 / 449.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2735, allocations: 4 kB / 449.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.938e-05/0.2735, allocations: 0 / 449.9 MB, free: 3.148 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004038/0.2775, allocations: 2.133 MB / 452.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.2776, allocations: 8.031 kB / 452.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002641/0.2779, allocations: 220.1 kB / 452.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009158/0.2788, allocations: 291.5 kB / 452.6 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002202/0.281, allocations: 1.052 MB / 453.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.2811, allocations: 119.2 kB / 453.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002373/0.2813, allocations: 163.9 kB / 453.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002736/0.284, allocations: 1.496 MB / 455.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.488e-05/0.2841, allocations: 11.94 kB / 455.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001314/0.2842, allocations: 64 kB / 455.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-05/0.2843, allocations: 36 kB / 455.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002162/0.2864, allocations: 1.053 MB / 456.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00823/0.2947, allocations: 6.116 MB / 462.7 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.2961, allocations: 0.5689 MB / 463.2 MB, free: 5.363 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000923/0.297, allocations: 426.6 kB / 463.7 MB, free: 4.945 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.625e-05/0.2971, allocations: 12.66 kB / 463.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.2971, allocations: 39.22 kB / 463.7 MB, free: 4.883 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.404e-06/0.2971, allocations: 0 / 463.7 MB, free: 4.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004629/0.3018, allocations: 2.162 MB / 465.9 MB, free: 2.691 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.3018, allocations: 111.5 kB / 466 MB, free: 2.559 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001732/0.3036, allocations: 1.314 MB / 467.3 MB, free: 1.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.792e-05/0.3036, allocations: 33.7 kB / 467.3 MB, free: 1.191 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006555/0.3043, allocations: 0.8788 MB / 468.2 MB, free: 312 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.3045, allocations: 269.7 kB / 468.5 MB, free: 40 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002947/0.3048, allocations: 210.8 kB / 468.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3049, allocations: 349.9 kB / 469 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005732/0.3055, allocations: 278.5 kB / 469.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009329/0.3064, allocations: 0.7424 MB / 470 MB, free: 14.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.308, allocations: 1.084 MB / 471.1 MB, free: 12.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.308, allocations: 4 kB / 471.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002368/0.3104, allocations: 1.272 MB / 472.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.3104, allocations: 12 kB / 472.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.3104, allocations: 16 kB / 472.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005192/0.311, allocations: 147.1 kB / 472.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008451/0.3118, allocations: 251.6 kB / 472.8 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004115/0.3159, allocations: 4.329 MB / 477.1 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008975/0.3168, allocations: 63.86 kB / 477.2 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.302e-05/0.3169, allocations: 52 kB / 477.2 MB, free: 6.453 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005822/0.3175, allocations: 357.4 kB / 477.6 MB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.3177, allocations: 147.1 kB / 477.7 MB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/0.3194, allocations: 0.8295 MB / 478.6 MB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.3195, allocations: 7.938 kB / 478.6 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3195, allocations: 4 kB / 478.6 MB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.3195, allocations: 3.984 kB / 478.6 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/0.3233, allocations: 2.285 MB / 480.9 MB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.3233, allocations: 4 kB / 480.9 MB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005733/0.3239, allocations: 131.8 kB / 481 MB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004246/0.3243, allocations: 134.9 kB / 481.1 MB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.246e-05/0.3244, allocations: 23.98 kB / 481.2 MB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004291/0.3287, allocations: 4.485 MB / 485.6 MB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.3287, allocations: 7.938 kB / 485.7 MB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.331, allocations: 1.301 MB / 487 MB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004823/0.3315, allocations: 215 kB / 487.2 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.3317, allocations: 19.94 kB / 487.2 MB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006021/0.3323, allocations: 43.95 kB / 487.2 MB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.3324, allocations: 64.28 kB / 487.3 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.052e-05/0.3325, allocations: 23.98 kB / 487.3 MB, free: 11.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001297/0.3338, allocations: 0.8781 MB / 488.2 MB, free: 10.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3338, allocations: 0 / 488.2 MB, free: 10.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001188/0.3349, allocations: 335.9 kB / 488.5 MB, free: 10.61 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002711/0.3377, allocations: 1.874 MB / 490.4 MB, free: 8.652 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001991/0.3396, allocations: 1.088 MB / 491.5 MB, free: 7.531 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3397, allocations: 0 / 491.5 MB, free: 7.531 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.3407, allocations: 0.6957 MB / 492.2 MB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/0.3424, allocations: 368.1 kB / 492.5 MB, free: 6.445 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01901/0.3614, allocations: 11.72 MB / 0.4924 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009431/0.3623, allocations: 1.213 MB / 0.4936 GB, free: 8.766 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006344/0.363, allocations: 179.5 kB / 0.4938 GB, free: 8.586 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007726/0.3637, allocations: 0.6086 MB / 0.4944 GB, free: 7.977 MB / 414.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3637, allocations: 0 / 0.4944 GB, free: 7.977 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0867/0.4504, allocations: 32.18 MB / 0.5258 GB, free: 8.121 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.28/15.73, allocations: 0 / 0.5258 GB, free: 8.121 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia1.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.875514655999723]