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.001317/0.001317, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001406/0.001406, allocations: 189.1 kB / 24.49 MB, free: 3.957 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.391/1.391, allocations: 225.7 MB / 253.3 MB, free: 12.85 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.001455/0.001455, allocations: 43.94 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2455, allocations: 52.19 MB / 423.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00933/0.2548, allocations: 7.255 MB / 430.6 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004508/0.2593, allocations: 2.501 MB / 433.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006075/0.2599, allocations: 31.88 kB / 433.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.2612, allocations: 0.523 MB / 433.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009767/0.2622, allocations: 0.508 MB / 434.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.2627, allocations: 255.7 kB / 434.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001424/0.2641, allocations: 1.51 MB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006244/0.2647, allocations: 399.3 kB / 436.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006559/0.2654, allocations: 0.5837 MB / 436.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006935/0.2661, allocations: 0.6105 MB / 437.5 MB, free: 196 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.2662, allocations: 140 kB / 437.7 MB, free: 56 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003327/0.2666, allocations: 176 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000236/0.2668, allocations: 294.8 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005347/0.2673, allocations: 0.5405 MB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001802/0.2691, allocations: 1.77 MB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2691, allocations: 0 / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2691, allocations: 4 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.2691, allocations: 4 kB / 440.4 MB, free: 13.27 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.002295/0.2714, allocations: 1.438 MB / 441.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.2715, allocations: 12.03 kB / 441.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.374e-05/0.2715, allocations: 30.19 kB / 441.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001727/0.2717, allocations: 148.4 kB / 442.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006411/0.2723, allocations: 196 kB / 442.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.2735, allocations: 0.6927 MB / 443 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.713e-05/0.2736, allocations: 74 kB / 443 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.2737, allocations: 107.9 kB / 443.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.2754, allocations: 1.047 MB / 444.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.2754, allocations: 3.953 kB / 444.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.2755, allocations: 44 kB / 444.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.511e-05/0.2755, allocations: 24 kB / 444.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.2768, allocations: 0.6442 MB / 444.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004716/0.2815, allocations: 3.521 MB / 448.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006505/0.2822, allocations: 343.6 kB / 448.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005662/0.2827, allocations: 268.6 kB / 449 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.2828, allocations: 8 kB / 449 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.2828, allocations: 42.48 kB / 449.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.833e-06/0.2828, allocations: 0 / 449.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002728/0.2855, allocations: 1.331 MB / 450.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.2856, allocations: 85.11 kB / 450.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.2866, allocations: 0.8411 MB / 451.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.2867, allocations: 33.7 kB / 451.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004347/0.2871, allocations: 0.5814 MB / 451.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.2872, allocations: 166.6 kB / 452.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/0.2874, allocations: 134.6 kB / 452.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2876, allocations: 337.9 kB / 452.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003486/0.2879, allocations: 173.9 kB / 452.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006001/0.2885, allocations: 497.3 kB / 453.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009554/0.2895, allocations: 0.6797 MB / 453.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2895, allocations: 0 / 453.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001314/0.2908, allocations: 0.7906 MB / 454.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.2908, allocations: 8.562 kB / 454.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.2908, allocations: 12 kB / 454.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002584/0.2911, allocations: 93.55 kB / 454.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/0.2916, allocations: 155.7 kB / 454.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.294, allocations: 2.928 MB / 457.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000509/0.2945, allocations: 40.09 kB / 457.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.2945, allocations: 36 kB / 457.9 MB, free: 10.79 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.0003688/0.2949, allocations: 265.5 kB / 458.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.295, allocations: 91.44 kB / 458.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009505/0.296, allocations: 0.4951 MB / 458.8 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.296, allocations: 4 kB / 458.8 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.296, allocations: 4 kB / 458.8 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.296, allocations: 3.984 kB / 458.8 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.2981, allocations: 1.341 MB / 460.1 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.2981, allocations: 4.109 kB / 460.1 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.2984, allocations: 75.84 kB / 460.2 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001977/0.2986, allocations: 77.89 kB / 460.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.2986, allocations: 11.94 kB / 460.3 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002285/0.3009, allocations: 2.912 MB / 463.2 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3009, allocations: 0 / 463.2 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.3022, allocations: 0.8073 MB / 464 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002586/0.3024, allocations: 131.3 kB / 464.2 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.3025, allocations: 16.12 kB / 464.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004231/0.303, allocations: 27.97 kB / 464.2 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.837e-05/0.303, allocations: 39.88 kB / 464.2 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.3031, allocations: 16 kB / 464.3 MB, free: 4.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007592/0.3038, allocations: 0.5693 MB / 464.8 MB, free: 3.527 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3038, allocations: 4 kB / 464.8 MB, free: 3.523 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007855/0.3046, allocations: 204 kB / 465 MB, free: 3.324 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.001612/0.3062, allocations: 1.366 MB / 466.4 MB, free: 1.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.3074, allocations: 0.6941 MB / 467.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3074, allocations: 0 / 467.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006651/0.308, allocations: 441.9 kB / 467.5 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009842/0.309, allocations: 236.5 kB / 467.7 MB, free: 0.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.3194, allocations: 7.473 MB / 475.2 MB, free: 8.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004486/0.3198, allocations: 422.6 kB / 475.6 MB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003997/0.3202, allocations: 111.3 kB / 475.7 MB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004701/0.3207, allocations: 391.3 kB / 476.1 MB, free: 7.645 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3207, allocations: 0 / 476.1 MB, free: 7.645 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05653/0.3772, allocations: 20.99 MB / 497.1 MB, free: 3.031 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.98, allocations: 4.062 kB / 497.1 MB, free: 3.027 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: 17.92090211599134]