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.00126/0.00126, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001725/0.001725, allocations: 216.2 kB / 24.53 MB, free: 4.07 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.441/1.441, allocations: 230.6 MB / 258.3 MB, free: 8.012 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 47.94 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.243, allocations: 53.36 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01045/0.2534, allocations: 8.307 MB / 440.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005107/0.2585, allocations: 2.774 MB / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009101/0.2594, allocations: 27.88 kB / 443 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001523/0.261, allocations: 0.5793 MB / 443.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.2624, allocations: 0.5002 MB / 444.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.2629, allocations: 275.6 kB / 444.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001849/0.2648, allocations: 1.509 MB / 445.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006484/0.2654, allocations: 403.3 kB / 446.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008759/0.2663, allocations: 0.5914 MB / 446.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007313/0.267, allocations: 0.6066 MB / 447.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.2672, allocations: 140 kB / 447.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003333/0.2675, allocations: 188 kB / 447.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002287/0.2677, allocations: 290.9 kB / 448.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007336/0.2685, allocations: 0.6765 MB / 448.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001968/0.2704, allocations: 1.771 MB / 450.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2704, allocations: 0 / 450.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2704, allocations: 0 / 450.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.811e-05/0.2705, allocations: 0 / 450.5 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.002528/0.273, allocations: 1.446 MB / 452 MB, free: 2.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.273, allocations: 8.031 kB / 452 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.686e-05/0.2731, allocations: 30.19 kB / 452 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001724/0.2732, allocations: 152.4 kB / 452.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007423/0.274, allocations: 208 kB / 452.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.2754, allocations: 0.6927 MB / 453.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.276e-05/0.2755, allocations: 74 kB / 453.1 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.2756, allocations: 99.95 kB / 453.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.2772, allocations: 0.9464 MB / 454.2 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/0.2773, allocations: 4 kB / 454.2 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-05/0.2773, allocations: 40 kB / 454.2 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.956e-05/0.2774, allocations: 28 kB / 454.3 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.2787, allocations: 0.652 MB / 454.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005426/0.2842, allocations: 3.805 MB / 458.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007664/0.2849, allocations: 347.4 kB / 459.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000615/0.2856, allocations: 268.6 kB / 459.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.2856, allocations: 4 kB / 459.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.2856, allocations: 46.44 kB / 459.4 MB, free: 11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.894e-06/0.2856, allocations: 0 / 459.4 MB, free: 11 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.002951/0.2886, allocations: 1.334 MB / 460.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.2886, allocations: 85.11 kB / 460.8 MB, free: 9.523 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/0.2899, allocations: 0.845 MB / 461.6 MB, free: 8.668 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.2899, allocations: 37.7 kB / 461.7 MB, free: 8.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004541/0.2904, allocations: 0.5775 MB / 462.2 MB, free: 8.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.2905, allocations: 166.6 kB / 462.4 MB, free: 7.875 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.2907, allocations: 134.6 kB / 462.5 MB, free: 7.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2908, allocations: 333.9 kB / 462.9 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000366/0.2912, allocations: 177.9 kB / 463 MB, free: 7.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005971/0.2918, allocations: 475.6 kB / 463.5 MB, free: 6.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.2928, allocations: 0.676 MB / 464.2 MB, free: 5.824 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.2928, allocations: 4 kB / 464.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00151/0.2943, allocations: 0.7794 MB / 465 MB, free: 5.027 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.2943, allocations: 8 kB / 465 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.2943, allocations: 8 kB / 465 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002723/0.2946, allocations: 93.91 kB / 465.1 MB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000496/0.2951, allocations: 159.7 kB / 465.2 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00269/0.2978, allocations: 2.935 MB / 468.2 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005797/0.2984, allocations: 47.94 kB / 468.2 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/0.2984, allocations: 32 kB / 468.2 MB, free: 1.516 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.0004046/0.2988, allocations: 271.1 kB / 468.5 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.299, allocations: 87.44 kB / 468.6 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.3, allocations: 0.4993 MB / 469.1 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3, allocations: 4 kB / 469.1 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3, allocations: 4.125 kB / 469.1 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.3, allocations: 3.984 kB / 469.1 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00232/0.3023, allocations: 1.45 MB / 470.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.3024, allocations: 4 kB / 470.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000314/0.3027, allocations: 75.89 kB / 470.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.3029, allocations: 69.89 kB / 470.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.3029, allocations: 19.94 kB / 470.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002591/0.3055, allocations: 2.916 MB / 473.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3055, allocations: 0 / 473.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.3069, allocations: 0.806 MB / 474.4 MB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003019/0.3072, allocations: 131.4 kB / 474.6 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.3073, allocations: 15.98 kB / 474.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004048/0.3077, allocations: 27.98 kB / 474.6 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.606e-05/0.3078, allocations: 39.62 kB / 474.6 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/0.3079, allocations: 12 kB / 474.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008072/0.3087, allocations: 0.581 MB / 475.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3087, allocations: 0 / 475.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008258/0.3095, allocations: 204 kB / 475.4 MB, free: 9.934 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.001837/0.3113, allocations: 1.381 MB / 476.8 MB, free: 8.496 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.3126, allocations: 0.6823 MB / 477.5 MB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3127, allocations: 0 / 477.5 MB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006938/0.3133, allocations: 453.5 kB / 477.9 MB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.3145, allocations: 217.5 kB / 478.2 MB, free: 7.113 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/0.326, allocations: 7.475 MB / 485.6 MB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.3267, allocations: 1.016 MB / 486.6 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003825/0.3271, allocations: 107.3 kB / 486.7 MB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004814/0.3276, allocations: 399.3 kB / 487.1 MB, free: 13.66 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3276, allocations: 0 / 487.1 MB, free: 13.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05918/0.3867, allocations: 20.14 MB / 0.4954 GB, free: 9.797 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.2, allocations: 8.047 kB / 0.4954 GB, free: 9.789 MB / 414.1 MB " [Timeout remaining time 647] (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: 18.17664696095744]