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.001251/0.001251, allocations: 107.2 kB / 16.92 MB, free: 6.145 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.00121/0.00121, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.162/1.162, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009434/0.0009434, allocations: 53.69 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07471/0.07566, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008475/0.08417, allocations: 8.215 MB / 358.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003985/0.08819, allocations: 2.704 MB / 361.1 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007196/0.08893, allocations: 23.94 kB / 361.1 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.09024, allocations: 0.548 MB / 361.7 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009419/0.09119, allocations: 476.2 kB / 362.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004279/0.09163, allocations: 267.7 kB / 362.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.09277, allocations: 1.5 MB / 363.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006511/0.09343, allocations: 0.5884 MB / 364.5 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005111/0.09395, allocations: 0.5603 MB / 365 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005624/0.09452, allocations: 0.6105 MB / 365.7 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.09469, allocations: 140 kB / 365.8 MB, free: 4.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.09501, allocations: 184 kB / 366 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001883/0.09521, allocations: 286.9 kB / 366.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005202/0.09574, allocations: 0.6687 MB / 366.9 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.09702, allocations: 1.732 MB / 368.6 MB, free: 1.727 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09704, allocations: 0 / 368.6 MB, free: 1.727 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09705, allocations: 0 / 368.6 MB, free: 1.727 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.09706, allocations: 0 / 368.6 MB, free: 1.727 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.002061/0.09913, allocations: 1.472 MB / 370.1 MB, free: 204 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.09917, allocations: 8.031 kB / 370.1 MB, free: 196 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.09933, allocations: 148.4 kB / 370.3 MB, free: 40 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1323/0.2317, allocations: 187.9 kB / 370.5 MB, free: 25.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.2328, allocations: 0.7574 MB / 371.2 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.994e-05/0.2328, allocations: 75.19 kB / 371.3 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.233, allocations: 101.5 kB / 371.4 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.2344, allocations: 0.9401 MB / 372.3 MB, free: 24.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.2344, allocations: 10.05 kB / 372.3 MB, free: 24.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.602e-05/0.2345, allocations: 42.28 kB / 372.4 MB, free: 24.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/0.2345, allocations: 23.75 kB / 372.4 MB, free: 24.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.2356, allocations: 0.6496 MB / 373.1 MB, free: 24.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003813/0.2394, allocations: 3.934 MB / 377 MB, free: 21.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005594/0.24, allocations: 456.3 kB / 377.4 MB, free: 21.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005001/0.2405, allocations: 270.9 kB / 377.7 MB, free: 21.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.2405, allocations: 4.875 kB / 377.7 MB, free: 21.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.2406, allocations: 39.97 kB / 377.7 MB, free: 21.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.833e-06/0.2406, allocations: 1.219 kB / 377.7 MB, free: 21.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002345/0.2429, allocations: 1.549 MB / 379.3 MB, free: 20.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/0.243, allocations: 81.11 kB / 379.4 MB, free: 20.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000901/0.2439, allocations: 0.8391 MB / 380.2 MB, free: 20.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.2439, allocations: 32.45 kB / 380.2 MB, free: 20.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.2442, allocations: 0.5604 MB / 380.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.332e-05/0.2442, allocations: 166.4 kB / 381 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.2444, allocations: 131.5 kB / 381.1 MB, free: 19.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.96e-05/0.2444, allocations: 340.4 kB / 381.4 MB, free: 19.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.2447, allocations: 173.9 kB / 381.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.2451, allocations: 470.4 kB / 382.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000689/0.2458, allocations: 0.6829 MB / 382.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.2458, allocations: 2.781 kB / 382.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001134/0.247, allocations: 0.7876 MB / 383.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.247, allocations: 8.469 kB / 383.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.247, allocations: 10.86 kB / 383.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002117/0.2473, allocations: 80.5 kB / 383.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000446/0.2477, allocations: 159 kB / 383.8 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.2492, allocations: 3.154 MB / 386.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004646/0.2497, allocations: 43.05 kB / 387 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.2497, allocations: 32.16 kB / 387 MB, free: 14.54 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.0002501/0.25, allocations: 267 kB / 387.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.2501, allocations: 85.19 kB / 387.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008327/0.2509, allocations: 0.5047 MB / 387.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.251, allocations: 7.078 kB / 387.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.251, allocations: 1.25 kB / 387.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.251, allocations: 2.625 kB / 387.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/0.2528, allocations: 1.472 MB / 389.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2528, allocations: 2.031 kB / 389.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/0.2531, allocations: 75.42 kB / 389.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001636/0.2532, allocations: 78.7 kB / 389.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.2533, allocations: 14.39 kB / 389.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.2546, allocations: 3.114 MB / 392.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2547, allocations: 1.531 kB / 392.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009968/0.2557, allocations: 0.8072 MB / 393.4 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.2559, allocations: 199.4 kB / 393.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.664e-05/0.256, allocations: 9.062 kB / 393.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000395/0.2564, allocations: 33.69 kB / 393.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.907e-05/0.2564, allocations: 35.53 kB / 393.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.2565, allocations: 15.05 kB / 393.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005861/0.2571, allocations: 0.5741 MB / 394.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2571, allocations: 3.828 kB / 394.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006942/0.2578, allocations: 216.4 kB / 394.5 MB, free: 9.086 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.001229/0.259, allocations: 1.368 MB / 395.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000944/0.2599, allocations: 0.7181 MB / 396.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.26, allocations: 7.641 kB / 396.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004846/0.2605, allocations: 455.8 kB / 397 MB, free: 7.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000929/0.2614, allocations: 228 kB / 397.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007376/0.2688, allocations: 7.979 MB / 405.2 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.2691, allocations: 1.009 MB / 406.3 MB, free: 15.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003662/0.2695, allocations: 107.3 kB / 406.4 MB, free: 15.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003778/0.2699, allocations: 387.2 kB / 406.7 MB, free: 15.33 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2699, allocations: 0 / 406.7 MB, free: 15.33 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.129/1.399, allocations: 19.07 MB / 425.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/13.56, allocations: 26.69 kB / 425.8 MB, free: 12.54 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