Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001759/0.001759, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001635/0.001635, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 67.89 kB / 377.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2691, allocations: 53.41 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01436/0.2835, allocations: 11.85 MB / 443 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006895/0.2904, allocations: 3.269 MB / 446.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001326/0.2917, allocations: 39.88 kB / 446.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.2936, allocations: 0.6747 MB / 447 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002006/0.2956, allocations: 0.7251 MB / 447.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008557/0.2964, allocations: 403.5 kB / 448.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002965/0.2994, allocations: 2.248 MB / 450.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001097/0.3005, allocations: 0.6498 MB / 451 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.302, allocations: 0.8756 MB / 451.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.3031, allocations: 0.9178 MB / 452.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002679/0.3034, allocations: 216 kB / 453 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004458/0.3038, allocations: 256 kB / 453.3 MB, free: 448 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003509/0.3042, allocations: 430.4 kB / 453.7 MB, free: 16 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001086/0.3052, allocations: 1.019 MB / 454.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003111/0.3083, allocations: 2.69 MB / 457.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3084, allocations: 0 / 457.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3084, allocations: 4 kB / 457.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.795e-05/0.3084, allocations: 0 / 457.4 MB, free: 12.29 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003775/0.3122, allocations: 2.033 MB / 459.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.3122, allocations: 12.03 kB / 459.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002836/0.3125, allocations: 224.1 kB / 459.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007987/0.3133, allocations: 263.6 kB / 460 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/0.3151, allocations: 0.9686 MB / 460.9 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.582e-05/0.3152, allocations: 119.2 kB / 461 MB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002162/0.3154, allocations: 163.9 kB / 461.2 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.3179, allocations: 1.487 MB / 462.7 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.198e-05/0.3179, allocations: 15.88 kB / 462.7 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/0.318, allocations: 60 kB / 462.8 MB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.45e-05/0.3181, allocations: 40 kB / 462.8 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.3199, allocations: 0.9707 MB / 463.8 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008513/0.3284, allocations: 6.392 MB / 470.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008125/0.3293, allocations: 376.8 kB / 470.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004303/0.3297, allocations: 213.1 kB / 470.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.3297, allocations: 4.438 kB / 470.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005428/0.3303, allocations: 272.8 kB / 471 MB, free: 14.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.043e-06/0.3303, allocations: 0 / 471 MB, free: 14.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003367/0.3336, allocations: 1.553 MB / 472.6 MB, free: 12.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.3338, allocations: 162.7 kB / 472.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/0.3356, allocations: 1.281 MB / 474 MB, free: 11.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.736e-05/0.3356, allocations: 37.7 kB / 474 MB, free: 11.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007958/0.3364, allocations: 0.8973 MB / 474.9 MB, free: 10.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.3366, allocations: 210.3 kB / 475.1 MB, free: 9.926 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.3369, allocations: 230.6 kB / 475.4 MB, free: 9.695 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3371, allocations: 357.9 kB / 475.7 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004493/0.3375, allocations: 226.5 kB / 475.9 MB, free: 9.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009446/0.3385, allocations: 0.8073 MB / 476.7 MB, free: 8.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.34, allocations: 1.117 MB / 477.9 MB, free: 6.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.317e-06/0.34, allocations: 4 kB / 477.9 MB, free: 6.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00202/0.3421, allocations: 1.168 MB / 479 MB, free: 5.461 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.27e-05/0.3421, allocations: 38.45 kB / 479.1 MB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/0.3421, allocations: 23.94 kB / 479.1 MB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/0.3424, allocations: 69.64 kB / 479.2 MB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007909/0.3432, allocations: 263.6 kB / 479.4 MB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/0.3455, allocations: 2.578 MB / 482 MB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009283/0.3464, allocations: 76.05 kB / 482.1 MB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.371e-05/0.3465, allocations: 60 kB / 482.1 MB, free: 2.125 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005891/0.3471, allocations: 357.3 kB / 482.5 MB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.3472, allocations: 143 kB / 482.6 MB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.3483, allocations: 0.5474 MB / 483.2 MB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3483, allocations: 4 kB / 483.2 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3483, allocations: 4 kB / 483.2 MB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.3483, allocations: 3.984 kB / 483.2 MB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002829/0.3512, allocations: 1.834 MB / 485 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3512, allocations: 4 kB / 485 MB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.3516, allocations: 107.8 kB / 485.1 MB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001429/0.3517, allocations: 42.11 kB / 485.2 MB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.3518, allocations: 20 kB / 485.2 MB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002022/0.3538, allocations: 2.543 MB / 487.7 MB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.3538, allocations: 4 kB / 487.7 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.3552, allocations: 0.9306 MB / 488.7 MB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004217/0.3557, allocations: 183.1 kB / 488.8 MB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.3558, allocations: 20 kB / 488.9 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.3563, allocations: 35.97 kB / 488.9 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.3564, allocations: 55.8 kB / 488.9 MB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.3565, allocations: 16 kB / 489 MB, free: 10.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00121/0.3577, allocations: 0.8461 MB / 489.8 MB, free: 9.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3577, allocations: 0 / 489.8 MB, free: 9.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001131/0.3588, allocations: 315.9 kB / 490.1 MB, free: 9.684 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.001849/0.3607, allocations: 1.506 MB / 491.6 MB, free: 8.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.3622, allocations: 0.8976 MB / 492.5 MB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3622, allocations: 0 / 492.5 MB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006813/0.3629, allocations: 457.9 kB / 493 MB, free: 6.695 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.3643, allocations: 343.9 kB / 493.3 MB, free: 6.371 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01643/0.3807, allocations: 10.93 MB / 0.4924 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008957/0.3816, allocations: 1.182 MB / 0.4936 GB, free: 9.406 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006355/0.3822, allocations: 167.3 kB / 0.4937 GB, free: 9.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007054/0.383, allocations: 0.5735 MB / 0.4943 GB, free: 8.664 MB / 414.1 MB Notification: Performance of SimCode: time 1.633e-06/0.383, allocations: 0 / 0.4943 GB, free: 8.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08417/0.4671, allocations: 28.8 MB / 0.5224 GB, free: 12.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.14, allocations: 4 kB / 0.5224 GB, free: 12.12 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: 19.03012895816937]