Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001575/0.001575, allocations: 108.8 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.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.001746/0.001746, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.411/1.411, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_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_0_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.001437/0.001437, allocations: 43.94 kB / 371.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2412, allocations: 52.19 MB / 423.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01003/0.2512, allocations: 8.294 MB / 431.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004904/0.2561, allocations: 2.7 MB / 434.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.2574, allocations: 31.81 kB / 434.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001954/0.2593, allocations: 0.5754 MB / 435 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001825/0.2612, allocations: 0.5118 MB / 435.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006489/0.2618, allocations: 263.7 kB / 435.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002159/0.264, allocations: 1.505 MB / 437.3 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007341/0.2647, allocations: 400.6 kB / 437.7 MB, free: 416 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009381/0.2656, allocations: 0.5838 MB / 438.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000778/0.2664, allocations: 0.6104 MB / 438.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001743/0.2666, allocations: 144 kB / 439 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003351/0.2669, allocations: 184 kB / 439.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.2671, allocations: 279 kB / 439.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006145/0.2678, allocations: 0.6765 MB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002003/0.2698, allocations: 1.755 MB / 441.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2698, allocations: 0 / 441.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2698, allocations: 0 / 441.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.2698, allocations: 4 kB / 441.9 MB, free: 12.17 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.00266/0.2725, allocations: 1.446 MB / 443.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.2725, allocations: 12.03 kB / 443.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.964e-05/0.2725, allocations: 30.12 kB / 443.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001763/0.2727, allocations: 152.4 kB / 443.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006883/0.2734, allocations: 192 kB / 443.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.2748, allocations: 0.6966 MB / 444.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.069e-05/0.2748, allocations: 74 kB / 444.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.275, allocations: 99.98 kB / 444.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.2766, allocations: 0.9425 MB / 445.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.2766, allocations: 11.94 kB / 445.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.362e-05/0.2767, allocations: 40 kB / 445.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.2767, allocations: 24 kB / 445.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.278, allocations: 0.6481 MB / 446.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005326/0.2833, allocations: 3.805 MB / 450.1 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006871/0.284, allocations: 347.7 kB / 450.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006241/0.2846, allocations: 267.6 kB / 450.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.2847, allocations: 8 kB / 450.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.2847, allocations: 34.56 kB / 450.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.345e-06/0.2847, allocations: 3.938 kB / 450.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003026/0.2877, allocations: 1.346 MB / 452.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.2878, allocations: 81.11 kB / 452.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.2889, allocations: 0.845 MB / 453 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.289, allocations: 29.7 kB / 453 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004432/0.2894, allocations: 0.5853 MB / 453.6 MB, free: 68 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.2895, allocations: 166.8 kB / 453.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/0.2897, allocations: 138.6 kB / 453.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2899, allocations: 330 kB / 454.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/0.2903, allocations: 173.9 kB / 454.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005888/0.2908, allocations: 471.6 kB / 454.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009787/0.2918, allocations: 0.6836 MB / 455.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-06/0.2918, allocations: 4 kB / 455.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001402/0.2932, allocations: 0.7911 MB / 456.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.2933, allocations: 12.03 kB / 456.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.2933, allocations: 12 kB / 456.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002641/0.2935, allocations: 81.61 kB / 456.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005207/0.2941, allocations: 163.7 kB / 456.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/0.2967, allocations: 2.932 MB / 459.5 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006451/0.2973, allocations: 35.94 kB / 459.6 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.626e-05/0.2974, allocations: 36.09 kB / 459.6 MB, free: 9.535 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.0004348/0.2978, allocations: 269 kB / 459.9 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.298, allocations: 99.48 kB / 460 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.299, allocations: 0.4951 MB / 460.5 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.299, allocations: 4 kB / 460.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.299, allocations: 4.125 kB / 460.5 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.299, allocations: 4 kB / 460.5 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.3013, allocations: 1.446 MB / 461.9 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3013, allocations: 4 kB / 461.9 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003262/0.3016, allocations: 71.89 kB / 462 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002118/0.3018, allocations: 69.91 kB / 462.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.3018, allocations: 11.98 kB / 462.1 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002443/0.3043, allocations: 2.92 MB / 465 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3043, allocations: 0 / 465 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.3057, allocations: 0.8073 MB / 465.8 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/0.306, allocations: 135.3 kB / 465.9 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.784e-05/0.3061, allocations: 8 kB / 465.9 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.3065, allocations: 39.91 kB / 466 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-05/0.3066, allocations: 35.88 kB / 466 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.3067, allocations: 12 kB / 466 MB, free: 2.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007876/0.3074, allocations: 0.5732 MB / 466.6 MB, free: 2.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3074, allocations: 0 / 466.6 MB, free: 2.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000818/0.3083, allocations: 219.9 kB / 466.8 MB, free: 1.949 MB / 366.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.001721/0.31, allocations: 1.362 MB / 468.2 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.3113, allocations: 0.6901 MB / 468.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.3113, allocations: 12.55 kB / 468.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006915/0.312, allocations: 433.1 kB / 469.3 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.3131, allocations: 219.8 kB / 469.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/0.3247, allocations: 7.482 MB / 477 MB, free: 7.215 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006805/0.3254, allocations: 1.005 MB / 478 MB, free: 6.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004365/0.3259, allocations: 115.3 kB / 478.1 MB, free: 6.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004862/0.3263, allocations: 395.3 kB / 478.5 MB, free: 5.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3263, allocations: 0 / 478.5 MB, free: 5.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05586/0.3822, allocations: 20.09 MB / 498.6 MB, free: 1.867 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.24, allocations: 11.92 kB / 498.6 MB, free: 1.855 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.35903558699647]