Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.001527/0.001527, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.001727/0.001727, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.42/1.42, allocations: 230.6 MB / 258.3 MB, free: 7.75 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_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 39.94 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2604, allocations: 53.37 MB / 431.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009752/0.2701, allocations: 7.152 MB / 439 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004625/0.2747, allocations: 2.49 MB / 441.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008407/0.2756, allocations: 31.88 kB / 441.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.2771, allocations: 0.5114 MB / 442.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001093/0.2782, allocations: 0.4964 MB / 442.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004925/0.2787, allocations: 247.7 kB / 442.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001572/0.2803, allocations: 1.475 MB / 444.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006597/0.2809, allocations: 407.2 kB / 444.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007913/0.2817, allocations: 0.5759 MB / 445.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007763/0.2825, allocations: 0.5988 MB / 445.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001635/0.2826, allocations: 140 kB / 446 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003953/0.283, allocations: 176 kB / 446.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00024/0.2833, allocations: 279 kB / 446.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005631/0.2838, allocations: 0.5366 MB / 447 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001855/0.2857, allocations: 1.747 MB / 448.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2857, allocations: 0 / 448.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2857, allocations: 4 kB / 448.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.2857, allocations: 0 / 448.7 MB, free: 5.723 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002593/0.2883, allocations: 1.4 MB / 450.1 MB, free: 4.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.2884, allocations: 12.03 kB / 450.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.213e-05/0.2884, allocations: 26.19 kB / 450.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.2886, allocations: 152.4 kB / 450.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007054/0.2893, allocations: 192 kB / 450.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.2907, allocations: 0.6763 MB / 451.2 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.045e-05/0.2907, allocations: 70 kB / 451.2 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002091/0.291, allocations: 99.95 kB / 451.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.2928, allocations: 1.039 MB / 452.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/0.2928, allocations: 4 kB / 452.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.962e-05/0.2929, allocations: 40 kB / 452.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.2929, allocations: 24 kB / 452.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.2941, allocations: 0.6363 MB / 453.1 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004853/0.299, allocations: 3.498 MB / 456.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000693/0.2997, allocations: 343.4 kB / 456.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005516/0.3002, allocations: 253.3 kB / 457.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.3003, allocations: 4.328 kB / 457.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.3003, allocations: 46.81 kB / 457.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.475e-06/0.3003, allocations: 4 kB / 457.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00267/0.303, allocations: 1.264 MB / 458.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/0.3031, allocations: 85.09 kB / 458.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.3041, allocations: 0.8176 MB / 459.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.3042, allocations: 33.7 kB / 459.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004389/0.3046, allocations: 0.5735 MB / 460 MB, free: 10.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.3048, allocations: 170.5 kB / 460.1 MB, free: 9.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.3049, allocations: 134.5 kB / 460.3 MB, free: 9.719 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3051, allocations: 334 kB / 460.6 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.3055, allocations: 165.9 kB / 460.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006038/0.3061, allocations: 485.7 kB / 461.2 MB, free: 8.609 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.3072, allocations: 0.6661 MB / 461.9 MB, free: 7.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.3072, allocations: 4 kB / 461.9 MB, free: 7.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001368/0.3085, allocations: 0.7668 MB / 462.7 MB, free: 7.027 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3085, allocations: 8.562 kB / 462.7 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.3086, allocations: 19.94 kB / 462.7 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002688/0.3088, allocations: 81.67 kB / 462.8 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.3093, allocations: 147.8 kB / 462.9 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.3121, allocations: 2.916 MB / 465.8 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005967/0.3127, allocations: 35.94 kB / 465.9 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.031e-05/0.3127, allocations: 40.16 kB / 465.9 MB, free: 3.551 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 (84): * Single equations (assignments): 82 * 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.0004198/0.3131, allocations: 257.5 kB / 466.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.3133, allocations: 87.44 kB / 466.2 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009514/0.3142, allocations: 499.5 kB / 466.7 MB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.3142, allocations: 8 kB / 466.7 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.3142, allocations: 3.938 kB / 466.7 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3142, allocations: 0 / 466.7 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.3163, allocations: 1.31 MB / 468.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3163, allocations: 0 / 468.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/0.3166, allocations: 75.89 kB / 468.1 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002089/0.3168, allocations: 73.61 kB / 468.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.3169, allocations: 16.22 kB / 468.2 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002567/0.3194, allocations: 2.908 MB / 471.1 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3194, allocations: 4.031 kB / 471.1 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.3207, allocations: 0.7627 MB / 471.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.321, allocations: 135.3 kB / 472 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.669e-05/0.3211, allocations: 12.06 kB / 472 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004004/0.3215, allocations: 23.98 kB / 472.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.92e-05/0.3216, allocations: 35.94 kB / 472.1 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.3216, allocations: 12 kB / 472.1 MB, free: 12.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007891/0.3224, allocations: 0.5654 MB / 472.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3224, allocations: 0 / 472.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008438/0.3232, allocations: 208 kB / 472.9 MB, free: 12.21 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 (38): * Single equations (assignments): 36 * 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.00164/0.3249, allocations: 1.338 MB / 474.2 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3261, allocations: 0.6696 MB / 474.9 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3261, allocations: 0 / 474.9 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006578/0.3267, allocations: 434.7 kB / 475.3 MB, free: 9.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.3278, allocations: 239.6 kB / 475.5 MB, free: 9.445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.3384, allocations: 7.312 MB / 482.9 MB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004859/0.3389, allocations: 417.9 kB / 483.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004045/0.3393, allocations: 111.2 kB / 483.4 MB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004654/0.3397, allocations: 371.3 kB / 483.7 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3397, allocations: 0 / 483.7 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05801/0.3977, allocations: 20.65 MB / 0.4926 GB, free: 12.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.56, allocations: 4.062 kB / 0.4926 GB, free: 12.53 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.493416249053553]