Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001667/0.001667, allocations: 115.6 kB / 20.43 MB, free: 1.309 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.001467/0.001467, allocations: 215 kB / 23.74 MB, free: 4.535 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.973 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.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 51.92 kB / 377.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2749, allocations: 53.36 MB / 431.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01103/0.2859, allocations: 8.315 MB / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005805/0.2917, allocations: 2.766 MB / 442.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001511/0.2933, allocations: 27.88 kB / 442.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.295, allocations: 0.5871 MB / 442.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.2964, allocations: 0.5002 MB / 443.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006698/0.2971, allocations: 259.7 kB / 443.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001993/0.2991, allocations: 1.514 MB / 445.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007355/0.2998, allocations: 409.1 kB / 445.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.3008, allocations: 0.5914 MB / 446.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008168/0.3016, allocations: 0.6067 MB / 446.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001874/0.3018, allocations: 140 kB / 446.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003694/0.3022, allocations: 192 kB / 447 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002515/0.3025, allocations: 286.9 kB / 447.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006596/0.3031, allocations: 0.6687 MB / 448 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002657/0.3058, allocations: 1.766 MB / 449.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.3058, allocations: 8 kB / 449.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3058, allocations: 0 / 449.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.8e-05/0.3058, allocations: 0 / 449.8 MB, free: 4.137 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002832/0.3086, allocations: 1.446 MB / 451.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.3087, allocations: 12.03 kB / 451.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003037/0.309, allocations: 148.4 kB / 451.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007635/0.3098, allocations: 204 kB / 451.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001529/0.3113, allocations: 0.6968 MB / 452.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.11e-05/0.3114, allocations: 74 kB / 452.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.3115, allocations: 99.95 kB / 452.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.3133, allocations: 0.9464 MB / 453.4 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/0.3134, allocations: 4 kB / 453.4 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.351e-05/0.3135, allocations: 40 kB / 453.4 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.119e-05/0.3135, allocations: 24 kB / 453.4 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.3148, allocations: 0.6519 MB / 454.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006188/0.321, allocations: 3.813 MB / 457.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008725/0.3219, allocations: 346.5 kB / 458.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006214/0.3225, allocations: 264.6 kB / 458.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.3225, allocations: 4 kB / 458.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.3226, allocations: 42.56 kB / 458.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.595e-06/0.3226, allocations: 0 / 458.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003345/0.3259, allocations: 1.342 MB / 459.9 MB, free: 9.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.326, allocations: 89.11 kB / 460 MB, free: 9.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.3272, allocations: 0.8411 MB / 460.8 MB, free: 8.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.3272, allocations: 33.7 kB / 460.8 MB, free: 8.641 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006131/0.3279, allocations: 0.5775 MB / 461.4 MB, free: 8.055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.328, allocations: 170.6 kB / 461.6 MB, free: 7.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.3282, allocations: 134.6 kB / 461.7 MB, free: 7.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002995/0.3285, allocations: 330 kB / 462 MB, free: 7.422 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004839/0.329, allocations: 177.9 kB / 462.2 MB, free: 7.246 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/0.3298, allocations: 479.6 kB / 462.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.3309, allocations: 0.6682 MB / 463.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3309, allocations: 4 kB / 463.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001445/0.3323, allocations: 0.7988 MB / 464.2 MB, free: 5.027 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.3323, allocations: 8 kB / 464.2 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.3324, allocations: 12 kB / 464.2 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.3327, allocations: 85.86 kB / 464.3 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005312/0.3332, allocations: 159.7 kB / 464.4 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00348/0.3367, allocations: 2.935 MB / 467.4 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006627/0.3373, allocations: 39.94 kB / 467.4 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-05/0.3374, allocations: 40.05 kB / 467.4 MB, free: 1.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004639/0.3379, allocations: 267.6 kB / 467.7 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.338, allocations: 91.44 kB / 467.8 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.3391, allocations: 0.4954 MB / 468.3 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3391, allocations: 4 kB / 468.3 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3391, allocations: 4 kB / 468.3 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3391, allocations: 3.984 kB / 468.3 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/0.3415, allocations: 1.443 MB / 469.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.3415, allocations: 7.984 kB / 469.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/0.3418, allocations: 67.91 kB / 469.8 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003523/0.3422, allocations: 73.67 kB / 469.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.3422, allocations: 8 kB / 469.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002825/0.345, allocations: 2.927 MB / 472.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.345, allocations: 3.938 kB / 472.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.3464, allocations: 0.8021 MB / 473.6 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000295/0.3467, allocations: 131.3 kB / 473.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.852e-05/0.3468, allocations: 15.94 kB / 473.8 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004379/0.3473, allocations: 27.98 kB / 473.8 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.991e-05/0.3474, allocations: 39.69 kB / 473.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.3474, allocations: 19.98 kB / 473.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008283/0.3482, allocations: 0.5693 MB / 474.4 MB, free: 10.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3482, allocations: 0 / 474.4 MB, free: 10.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008788/0.3491, allocations: 208 kB / 474.6 MB, free: 9.949 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.00182/0.3509, allocations: 1.378 MB / 476 MB, free: 8.516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.3523, allocations: 0.6816 MB / 476.7 MB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3523, allocations: 0 / 476.7 MB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007127/0.3531, allocations: 446.2 kB / 477.1 MB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.3541, allocations: 238.2 kB / 477.3 MB, free: 7.121 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/0.3672, allocations: 7.476 MB / 484.8 MB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007422/0.3679, allocations: 1.016 MB / 485.8 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004456/0.3684, allocations: 107.3 kB / 485.9 MB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004881/0.3689, allocations: 391.3 kB / 486.3 MB, free: 13.67 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3689, allocations: 0 / 486.3 MB, free: 13.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06516/0.434, allocations: 20.11 MB / 0.4946 GB, free: 9.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.71, allocations: 6.922 kB / 0.4946 GB, free: 9.828 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.894292921999295]