Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009798/0.0009797, allocations: 112.2 kB / 17.28 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009692/0.0009693, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.226/1.226, allocations: 205.1 MB / 224 MB, free: 12.38 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 51.92 kB / 280.3 MB, free: 3.371 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0753/0.07636, allocations: 46.62 MB / 326.9 MB, free: 4.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01046/0.08684, allocations: 11.61 MB / 338.5 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004446/0.09132, allocations: 3.173 MB / 341.7 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006112/0.09197, allocations: 35.94 kB / 341.7 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.09332, allocations: 0.5554 MB / 342.3 MB, free: 5.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001384/0.09472, allocations: 0.5857 MB / 342.8 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006427/0.09537, allocations: 347.7 kB / 343.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001899/0.09728, allocations: 2.246 MB / 345.4 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.09838, allocations: 0.985 MB / 346.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.09944, allocations: 0.8365 MB / 347.3 MB, free: 176 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009304/0.1004, allocations: 0.9063 MB / 348.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002254/0.1006, allocations: 220 kB / 348.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003805/0.101, allocations: 256 kB / 348.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002581/0.1013, allocations: 434.4 kB / 349 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009344/0.1022, allocations: 1.019 MB / 350.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002609/0.1048, allocations: 2.639 MB / 352.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1048, allocations: 4 kB / 352.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1049, allocations: 0 / 352.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.364e-05/0.1049, allocations: 0 / 352.7 MB, free: 10.7 MB / 302.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.003157/0.1081, allocations: 2.072 MB / 354.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.1081, allocations: 8.031 kB / 354.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002213/0.1083, allocations: 220 kB / 355 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007283/0.1091, allocations: 254.5 kB / 355.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.1105, allocations: 1.024 MB / 356.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-05/0.1106, allocations: 123.2 kB / 356.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.1108, allocations: 155.9 kB / 356.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002173/0.1129, allocations: 1.48 MB / 358 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.763e-05/0.113, allocations: 15.89 kB / 358 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.1131, allocations: 64 kB / 358.1 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/0.1131, allocations: 36 kB / 358.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/0.1148, allocations: 0.9824 MB / 359.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007589/0.1224, allocations: 6.57 MB / 365.7 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007269/0.1232, allocations: 400.1 kB / 366.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000393/0.1236, allocations: 222.1 kB / 366.3 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.1237, allocations: 8.438 kB / 366.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005524/0.1242, allocations: 268.8 kB / 366.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.194e-06/0.1242, allocations: 3.938 kB / 366.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002878/0.1271, allocations: 1.758 MB / 368.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.096e-05/0.1272, allocations: 166.8 kB / 368.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.1287, allocations: 1.277 MB / 369.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.1287, allocations: 37.7 kB / 369.8 MB, free: 8.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005546/0.1293, allocations: 0.8712 MB / 370.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.1294, allocations: 205.2 kB / 370.9 MB, free: 7.762 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.1297, allocations: 218.6 kB / 371.1 MB, free: 7.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1298, allocations: 357.9 kB / 371.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.1302, allocations: 226.5 kB / 371.7 MB, free: 6.965 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007296/0.131, allocations: 0.8112 MB / 372.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.1321, allocations: 1.114 MB / 373.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.1321, allocations: 4 kB / 373.6 MB, free: 4.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001639/0.1338, allocations: 1.165 MB / 374.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/0.1339, allocations: 41.73 kB / 374.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/0.1339, allocations: 27.92 kB / 374.8 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/0.1341, allocations: 65.7 kB / 374.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000701/0.1348, allocations: 263.5 kB / 375.2 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1562/0.291, allocations: 2.781 MB / 377.9 MB, free: 50.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.2925, allocations: 65.25 kB / 378 MB, free: 50.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.2927, allocations: 65.75 kB / 378.1 MB, free: 50.57 MB / 318.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.00068/0.2934, allocations: 355.2 kB / 378.4 MB, free: 50.46 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001972/0.2936, allocations: 132 kB / 378.5 MB, free: 50.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.2948, allocations: 0.5495 MB / 379.1 MB, free: 50.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.2948, allocations: 5.5 kB / 379.1 MB, free: 50.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.2948, allocations: 2.25 kB / 379.1 MB, free: 50.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.2948, allocations: 6.422 kB / 379.1 MB, free: 50.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003149/0.298, allocations: 1.875 MB / 381 MB, free: 49.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.298, allocations: 3.312 kB / 381 MB, free: 49.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004318/0.2984, allocations: 108 kB / 381.1 MB, free: 49.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001588/0.2986, allocations: 46.94 kB / 381.1 MB, free: 49.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.28e-05/0.2987, allocations: 14.75 kB / 381.1 MB, free: 49.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.3, allocations: 2.744 MB / 383.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.3, allocations: 7.953 kB / 383.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.3015, allocations: 0.9232 MB / 384.8 MB, free: 46.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004244/0.302, allocations: 254 kB / 385.1 MB, free: 46.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.3021, allocations: 18.28 kB / 385.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005239/0.3026, allocations: 34.42 kB / 385.1 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.3028, allocations: 52.12 kB / 385.2 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.3029, allocations: 21.48 kB / 385.2 MB, free: 46.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001312/0.3042, allocations: 0.8509 MB / 386 MB, free: 46.01 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3042, allocations: 1.031 kB / 386 MB, free: 46.01 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001159/0.3053, allocations: 308 kB / 386.3 MB, free: 45.98 MB / 318.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.001539/0.3069, allocations: 1.494 MB / 387.8 MB, free: 44.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.3083, allocations: 0.9469 MB / 388.8 MB, free: 44.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.3083, allocations: 0 / 388.8 MB, free: 44.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.3089, allocations: 472.7 kB / 389.2 MB, free: 44.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.3103, allocations: 343.3 kB / 389.6 MB, free: 44 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/0.3257, allocations: 12.75 MB / 402.3 MB, free: 35.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006043/0.3264, allocations: 1.179 MB / 403.5 MB, free: 34.36 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007828/0.3272, allocations: 172.3 kB / 403.7 MB, free: 34.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005448/0.3277, allocations: 0.5652 MB / 404.2 MB, free: 33.86 MB / 318.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3277, allocations: 0 / 404.2 MB, free: 33.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04327/0.371, allocations: 27.01 MB / 431.3 MB, free: 8.594 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/0.3712, allocations: 252.9 kB / 431.5 MB, free: 8.332 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.296/2.667, allocations: 0 / 431.5 MB, free: 8.332 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches