Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001277/0.001277, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.00141/0.00141, allocations: 214.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 52.2 kB / 347.2 MB, free: 9.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2758, allocations: 49.16 MB / 396.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007588/0.2834, allocations: 7.22 MB / 403.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004263/0.2877, allocations: 2.552 MB / 406.1 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009263/0.2886, allocations: 32.66 kB / 406.2 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.2901, allocations: 0.5259 MB / 406.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001205/0.2913, allocations: 0.5035 MB / 407.2 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.2918, allocations: 261.5 kB / 407.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.2933, allocations: 1.504 MB / 408.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005983/0.2939, allocations: 366.6 kB / 409.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008132/0.2948, allocations: 0.5823 MB / 409.9 MB, free: 364 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006339/0.2954, allocations: 0.534 MB / 410.4 MB, free: 104 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000168/0.2956, allocations: 139.9 kB / 410.6 MB, free: 104 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.2959, allocations: 184.8 kB / 410.7 MB, free: 88 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002342/0.2961, allocations: 275.5 kB / 411 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000603/0.2967, allocations: 0.5537 MB / 411.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00215/0.2989, allocations: 1.773 MB / 413.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2989, allocations: 3.938 kB / 413.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2989, allocations: 0 / 413.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.586e-05/0.2989, allocations: 0 / 413.3 MB, free: 14.36 MB / 334.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.002739/0.3017, allocations: 1.435 MB / 414.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.3017, allocations: 13.33 kB / 414.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001844/0.3019, allocations: 152 kB / 414.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006554/0.3026, allocations: 196.3 kB / 415.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.3039, allocations: 0.6928 MB / 415.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.447e-05/0.304, allocations: 78.75 kB / 415.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.3041, allocations: 99.92 kB / 416 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001795/0.3059, allocations: 1.042 MB / 417 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.68e-05/0.3059, allocations: 6.25 kB / 417 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.351e-05/0.306, allocations: 44.84 kB / 417.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/0.3061, allocations: 24.12 kB / 417.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.3074, allocations: 0.645 MB / 417.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00543/0.3128, allocations: 3.521 MB / 421.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007033/0.3135, allocations: 346.7 kB / 421.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006003/0.3141, allocations: 256.3 kB / 421.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.3141, allocations: 4.844 kB / 421.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.3142, allocations: 41.08 kB / 421.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.174e-06/0.3142, allocations: 1.094 kB / 421.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003277/0.3174, allocations: 1.347 MB / 423.3 MB, free: 7.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.102e-05/0.3175, allocations: 82.2 kB / 423.3 MB, free: 7.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/0.3188, allocations: 0.8571 MB / 424.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.3189, allocations: 32.11 kB / 424.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000482/0.3193, allocations: 0.5775 MB / 424.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.3195, allocations: 167.2 kB / 425 MB, free: 5.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.3197, allocations: 137.2 kB / 425.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3199, allocations: 333.4 kB / 425.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003792/0.3202, allocations: 176.3 kB / 425.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006365/0.3209, allocations: 497.8 kB / 426.1 MB, free: 4.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.3219, allocations: 0.6797 MB / 426.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3219, allocations: 4 kB / 426.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00151/0.3234, allocations: 0.7908 MB / 427.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3234, allocations: 8 kB / 427.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.3234, allocations: 12 kB / 427.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002925/0.3237, allocations: 85.86 kB / 427.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005355/0.3243, allocations: 159.7 kB / 427.8 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.3269, allocations: 2.923 MB / 430.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006798/0.3275, allocations: 31.98 kB / 430.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.097e-05/0.3276, allocations: 36 kB / 430.8 MB, free: 15.79 MB / 350.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.000422/0.328, allocations: 261.5 kB / 431.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.3281, allocations: 107.3 kB / 431.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001023/0.3292, allocations: 0.4994 MB / 431.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3292, allocations: 4 kB / 431.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3292, allocations: 0 / 431.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.3292, allocations: 7.984 kB / 431.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/0.3315, allocations: 1.329 MB / 433 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.515e-06/0.3315, allocations: 12.02 kB / 433 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003293/0.3318, allocations: 71.91 kB / 433.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002113/0.332, allocations: 69.61 kB / 433.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.3321, allocations: 16.05 kB / 433.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/0.3345, allocations: 2.915 MB / 436.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3346, allocations: 4 kB / 436.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.336, allocations: 0.7987 MB / 436.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003567/0.3363, allocations: 131.4 kB / 437 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.3364, allocations: 15.94 kB / 437 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.3369, allocations: 31.97 kB / 437.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.878e-05/0.3369, allocations: 31.94 kB / 437.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.337, allocations: 16 kB / 437.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008121/0.3378, allocations: 0.5732 MB / 437.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3378, allocations: 0 / 437.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009079/0.3387, allocations: 204 kB / 437.9 MB, free: 8.32 MB / 350.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.001803/0.3405, allocations: 1.381 MB / 439.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.3418, allocations: 0.6817 MB / 439.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3418, allocations: 0 / 439.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006945/0.3425, allocations: 450.5 kB / 440.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.3436, allocations: 227.2 kB / 440.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3545, allocations: 7.463 MB / 448.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.355, allocations: 438.6 kB / 448.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004063/0.3554, allocations: 103.3 kB / 448.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005058/0.3559, allocations: 391.3 kB / 449 MB, free: 12.64 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3559, allocations: 3.938 kB / 449 MB, free: 12.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06291/0.4188, allocations: 21.26 MB / 470.2 MB, free: 7.281 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.14, allocations: 8 kB / 470.3 MB, free: 7.273 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 15.874634023755789]