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.001674/0.001674, allocations: 109.2 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.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.001969/0.001969, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.001634/0.001634, allocations: 47.92 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3036, allocations: 53.37 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.011/0.3146, allocations: 8.321 MB / 439.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0053/0.3199, allocations: 2.766 MB / 442.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009983/0.3209, allocations: 27.88 kB / 442.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001667/0.3225, allocations: 0.5793 MB / 442.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001455/0.324, allocations: 0.504 MB / 443.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000627/0.3246, allocations: 267.7 kB / 443.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.3266, allocations: 1.506 MB / 445.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007393/0.3273, allocations: 403.3 kB / 445.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009446/0.3282, allocations: 0.5875 MB / 446.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008495/0.3291, allocations: 0.6183 MB / 446.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.3293, allocations: 140 kB / 446.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003903/0.3297, allocations: 188 kB / 447 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.3299, allocations: 286.9 kB / 447.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007322/0.3307, allocations: 0.6687 MB / 448 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002483/0.3331, allocations: 1.771 MB / 449.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3331, allocations: 0 / 449.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3331, allocations: 3.938 kB / 449.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.246e-05/0.3332, allocations: 0 / 449.8 MB, free: 4.152 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.002783/0.3359, allocations: 1.446 MB / 451.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.927e-05/0.336, allocations: 12.03 kB / 451.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002055/0.3362, allocations: 148.4 kB / 451.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008019/0.337, allocations: 212 kB / 451.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001518/0.3386, allocations: 0.6889 MB / 452.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.135e-05/0.3386, allocations: 74 kB / 452.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.3388, allocations: 99.95 kB / 452.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/0.3404, allocations: 0.9464 MB / 453.4 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.176e-05/0.3405, allocations: 0 / 453.4 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.688e-05/0.3406, allocations: 43.98 kB / 453.4 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.357e-05/0.3406, allocations: 28 kB / 453.4 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.3419, allocations: 0.6519 MB / 454.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005783/0.3477, allocations: 3.801 MB / 457.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007402/0.3484, allocations: 354.5 kB / 458.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006308/0.3491, allocations: 264.6 kB / 458.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.787e-05/0.3491, allocations: 7.984 kB / 458.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.3492, allocations: 38.56 kB / 458.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.064e-06/0.3492, allocations: 0 / 458.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003094/0.3523, allocations: 1.342 MB / 459.9 MB, free: 9.652 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.3523, allocations: 85.05 kB / 460 MB, free: 9.551 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.3536, allocations: 0.845 MB / 460.8 MB, free: 8.695 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.3537, allocations: 29.7 kB / 460.8 MB, free: 8.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005682/0.3543, allocations: 0.5814 MB / 461.4 MB, free: 8.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.3544, allocations: 170.5 kB / 461.6 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.3546, allocations: 138.6 kB / 461.7 MB, free: 7.762 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3548, allocations: 334 kB / 462 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.3551, allocations: 169.9 kB / 462.2 MB, free: 7.262 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006286/0.3558, allocations: 479.6 kB / 462.7 MB, free: 6.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.3568, allocations: 0.6682 MB / 463.4 MB, free: 5.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.3568, allocations: 4 kB / 463.4 MB, free: 5.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001524/0.3584, allocations: 0.7836 MB / 464.1 MB, free: 5.059 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.3584, allocations: 15.94 kB / 464.2 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.3584, allocations: 12 kB / 464.2 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002893/0.3587, allocations: 81.61 kB / 464.2 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005244/0.3592, allocations: 159.7 kB / 464.4 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002849/0.3621, allocations: 2.951 MB / 467.4 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000667/0.3627, allocations: 35.94 kB / 467.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.3628, allocations: 36 kB / 467.4 MB, free: 1.539 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.0004911/0.3633, allocations: 267.5 kB / 467.7 MB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.3635, allocations: 91.44 kB / 467.8 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.3646, allocations: 0.4992 MB / 468.3 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.3646, allocations: 8 kB / 468.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3646, allocations: 4 kB / 468.3 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3646, allocations: 0 / 468.3 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/0.3674, allocations: 1.443 MB / 469.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.3674, allocations: 4 kB / 469.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003535/0.3677, allocations: 72.11 kB / 469.8 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002422/0.368, allocations: 73.69 kB / 469.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.368, allocations: 11.98 kB / 469.9 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002982/0.371, allocations: 2.916 MB / 472.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.371, allocations: 12 kB / 472.8 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.3726, allocations: 0.7982 MB / 473.6 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.373, allocations: 127.4 kB / 473.7 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.3732, allocations: 15.94 kB / 473.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005248/0.3738, allocations: 31.97 kB / 473.8 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3739, allocations: 39.62 kB / 473.8 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.3739, allocations: 16 kB / 473.8 MB, free: 10.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001064/0.375, allocations: 0.5732 MB / 474.4 MB, free: 10.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.375, allocations: 4 kB / 474.4 MB, free: 10.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001068/0.376, allocations: 212 kB / 474.6 MB, free: 9.961 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.002018/0.378, allocations: 1.374 MB / 476 MB, free: 8.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.3795, allocations: 0.6825 MB / 476.7 MB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.647e-05/0.3795, allocations: 4.312 kB / 476.7 MB, free: 7.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007452/0.3803, allocations: 444.8 kB / 477.1 MB, free: 7.359 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.3817, allocations: 235.2 kB / 477.3 MB, free: 7.141 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.3951, allocations: 7.472 MB / 484.8 MB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008707/0.3959, allocations: 1.016 MB / 485.8 MB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00047/0.3964, allocations: 107.3 kB / 485.9 MB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005478/0.397, allocations: 387.3 kB / 486.3 MB, free: 13.7 MB / 398.1 MB Notification: Performance of SimCode: time 1.052e-06/0.397, allocations: 0 / 486.3 MB, free: 13.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0688/0.4658, allocations: 20.12 MB / 0.4946 GB, free: 9.844 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.76, allocations: 0 / 0.4946 GB, free: 9.844 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.651221513049677]