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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",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="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.00139/0.00139, allocations: 110.4 kB / 16.51 MB, free: 6.707 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.001812/0.001812, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 45.89 kB / 300.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.08668, allocations: 49.45 MB / 349.5 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007926/0.09464, allocations: 8.168 MB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003808/0.09847, allocations: 2.677 MB / 360.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005597/0.09905, allocations: 23.94 kB / 360.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001155/0.1002, allocations: 0.4941 MB / 360.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007873/0.101, allocations: 413.1 kB / 361.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.1014, allocations: 227.8 kB / 361.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.1025, allocations: 1.433 MB / 362.9 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005924/0.1031, allocations: 0.5007 MB / 363.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004574/0.1036, allocations: 0.5094 MB / 363.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004795/0.1041, allocations: 0.5676 MB / 364.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.1042, allocations: 88 kB / 364.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/0.1044, allocations: 127.9 kB / 364.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.1046, allocations: 234.9 kB / 365 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004641/0.1051, allocations: 0.6179 MB / 365.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001181/0.1063, allocations: 1.697 MB / 367.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1063, allocations: 0 / 367.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1063, allocations: 4 kB / 367.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.1063, allocations: 0 / 367.3 MB, free: 2.805 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002145/0.1085, allocations: 1.472 MB / 368.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1085, allocations: 12.03 kB / 368.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001492/0.1087, allocations: 148.4 kB / 368.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006288/0.1093, allocations: 195.3 kB / 369.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009735/0.1103, allocations: 0.7538 MB / 369.8 MB, free: 128 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.654e-05/0.1103, allocations: 66 kB / 369.9 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1297/0.24, allocations: 97.33 kB / 370 MB, free: 25.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.2419, allocations: 0.9417 MB / 371 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/0.2419, allocations: 6.094 kB / 371 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.899e-05/0.242, allocations: 42.05 kB / 371 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/0.242, allocations: 25.23 kB / 371 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.2434, allocations: 0.6519 MB / 371.7 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005161/0.2485, allocations: 3.95 MB / 375.6 MB, free: 22.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006664/0.2492, allocations: 441.3 kB / 376.1 MB, free: 22.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005397/0.2498, allocations: 273.1 kB / 376.3 MB, free: 22.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.2498, allocations: 7.328 kB / 376.3 MB, free: 22.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.2499, allocations: 37.97 kB / 376.4 MB, free: 22.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/0.2499, allocations: 0 / 376.4 MB, free: 22.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002675/0.2525, allocations: 1.541 MB / 377.9 MB, free: 21.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.2526, allocations: 81.89 kB / 378 MB, free: 21.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.2536, allocations: 0.8462 MB / 378.8 MB, free: 20.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.2537, allocations: 36.92 kB / 378.9 MB, free: 20.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.254, allocations: 0.5681 MB / 379.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.306e-05/0.2541, allocations: 162 kB / 379.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.2542, allocations: 134 kB / 379.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.628e-05/0.2543, allocations: 334.6 kB / 380.1 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.2546, allocations: 169.6 kB / 380.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.2551, allocations: 472.5 kB / 380.7 MB, free: 19.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007432/0.2558, allocations: 0.6826 MB / 381.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2558, allocations: 7.031 kB / 381.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001232/0.2571, allocations: 0.7806 MB / 382.1 MB, free: 18.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.2571, allocations: 10.25 kB / 382.2 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.2571, allocations: 13.28 kB / 382.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002691/0.2574, allocations: 81.94 kB / 382.3 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/0.2579, allocations: 154.9 kB / 382.4 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.2595, allocations: 2.88 MB / 385.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005287/0.26, allocations: 38.5 kB / 385.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/0.2601, allocations: 36.72 kB / 385.4 MB, free: 15.42 MB / 302.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.0003048/0.2604, allocations: 257.4 kB / 385.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.2605, allocations: 90.12 kB / 385.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000889/0.2614, allocations: 0.5037 MB / 386.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.2614, allocations: 6.078 kB / 386.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2614, allocations: 1.188 kB / 386.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.2614, allocations: 5.359 kB / 386.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.2634, allocations: 1.476 MB / 387.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.2634, allocations: 3.266 kB / 387.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003138/0.2637, allocations: 72.09 kB / 387.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001904/0.2639, allocations: 79.08 kB / 387.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.264, allocations: 14.83 kB / 387.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.2654, allocations: 2.852 MB / 390.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.2654, allocations: 2.188 kB / 390.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.2666, allocations: 0.8026 MB / 391.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.2668, allocations: 204.2 kB / 391.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.2669, allocations: 8.609 kB / 391.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004165/0.2673, allocations: 29.8 kB / 391.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.08e-05/0.2674, allocations: 36.59 kB / 391.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.2674, allocations: 18.22 kB / 391.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006777/0.2681, allocations: 0.5736 MB / 392.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2681, allocations: 0 / 392.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000808/0.2689, allocations: 211.3 kB / 392.6 MB, free: 10.29 MB / 302.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.001318/0.2703, allocations: 1.369 MB / 394 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.2713, allocations: 0.7087 MB / 394.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2713, allocations: 1.219 kB / 394.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005832/0.2719, allocations: 456.7 kB / 395.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.273, allocations: 216.4 kB / 395.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009926/0.2829, allocations: 8.373 MB / 403.7 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.2833, allocations: 1.013 MB / 404.7 MB, free: 1.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004358/0.2838, allocations: 115.3 kB / 404.8 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000354/0.2841, allocations: 387.8 kB / 405.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2841, allocations: 0 / 405.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.431/3.715, allocations: 18.4 MB / 423.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/3.715, allocations: 244.7 kB / 423.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.262/5.978, allocations: 11.25 kB / 423.8 MB, free: 14.38 MB / 334.1 MB (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 --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) 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) Reference file matches