Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001098/0.001098, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 63.08 kB / 307.1 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07331/0.07438, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007822/0.08223, allocations: 8.235 MB / 365.8 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003665/0.08592, allocations: 2.754 MB / 368.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000415/0.08635, allocations: 23.94 kB / 368.6 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.08744, allocations: 0.5519 MB / 369.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007252/0.08818, allocations: 484.2 kB / 369.6 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.08858, allocations: 267.6 kB / 369.9 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.08963, allocations: 1.498 MB / 371.4 MB, free: 180 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1336/0.2232, allocations: 0.5788 MB / 372 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007524/0.224, allocations: 0.5593 MB / 372.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005226/0.2245, allocations: 0.6142 MB / 373.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.2247, allocations: 139.8 kB / 373.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000335/0.225, allocations: 188 kB / 373.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.2252, allocations: 288.2 kB / 373.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004761/0.2257, allocations: 0.6752 MB / 374.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001424/0.2271, allocations: 1.737 MB / 376.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2271, allocations: 0 / 376.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2271, allocations: 0 / 376.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.2272, allocations: 2.219 kB / 376.2 MB, free: 9.973 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.001977/0.2291, allocations: 1.476 MB / 377.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2292, allocations: 16.94 kB / 377.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001475/0.2293, allocations: 154.4 kB / 377.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006608/0.23, allocations: 201.8 kB / 378 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008916/0.2309, allocations: 0.7544 MB / 378.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.013e-05/0.231, allocations: 73.56 kB / 378.8 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.2311, allocations: 99.67 kB / 378.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.2324, allocations: 0.9424 MB / 379.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.2324, allocations: 10.64 kB / 379.9 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.952e-05/0.2325, allocations: 39.81 kB / 379.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.2325, allocations: 25.03 kB / 379.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.2336, allocations: 0.6471 MB / 380.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003998/0.2376, allocations: 3.95 MB / 384.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005699/0.2382, allocations: 445 kB / 385 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005066/0.2387, allocations: 271.2 kB / 385.2 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.2388, allocations: 6.281 kB / 385.2 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.2388, allocations: 36.88 kB / 385.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.533e-06/0.2388, allocations: 0 / 385.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002384/0.2412, allocations: 1.545 MB / 386.8 MB, free: 4.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.685e-05/0.2412, allocations: 85.33 kB / 386.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008723/0.2421, allocations: 0.8482 MB / 387.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.2421, allocations: 42.33 kB / 387.8 MB, free: 3.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.2424, allocations: 0.5643 MB / 388.4 MB, free: 3.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.1e-05/0.2425, allocations: 166.5 kB / 388.5 MB, free: 3.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.2426, allocations: 128.3 kB / 388.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.466e-05/0.2427, allocations: 330.9 kB / 389 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003042/0.243, allocations: 169.7 kB / 389.1 MB, free: 2.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/0.2434, allocations: 483.9 kB / 389.6 MB, free: 2.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006933/0.2441, allocations: 0.6665 MB / 390.3 MB, free: 1.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.2441, allocations: 7.938 kB / 390.3 MB, free: 1.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001121/0.2452, allocations: 0.788 MB / 391.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.2452, allocations: 11.91 kB / 391.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.2452, allocations: 9.406 kB / 391.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002098/0.2455, allocations: 83.67 kB / 391.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004503/0.2459, allocations: 161.7 kB / 391.3 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001729/0.2477, allocations: 3.147 MB / 394.5 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000503/0.2482, allocations: 42.31 kB / 394.5 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.225e-05/0.2482, allocations: 36 kB / 394.5 MB, free: 14.48 MB / 318.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.0004238/0.2487, allocations: 262.9 kB / 394.8 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.2488, allocations: 89.5 kB / 394.9 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/0.2502, allocations: 0.5012 MB / 395.4 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.2502, allocations: 4.281 kB / 395.4 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2502, allocations: 2.625 kB / 395.4 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.2502, allocations: 3.328 kB / 395.4 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.2531, allocations: 1.48 MB / 396.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2532, allocations: 1.375 kB / 396.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004553/0.2536, allocations: 73.7 kB / 397 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002681/0.2539, allocations: 81.64 kB / 397 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.254, allocations: 8.125 kB / 397 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002839/0.2568, allocations: 3.128 MB / 400.2 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.2568, allocations: 6.328 kB / 400.2 MB, free: 9.945 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.2586, allocations: 0.7946 MB / 401 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003726/0.259, allocations: 203.2 kB / 401.2 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.2592, allocations: 12.28 kB / 401.2 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006818/0.2599, allocations: 27.23 kB / 401.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.26, allocations: 45.3 kB / 401.3 MB, free: 9.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-05/0.2601, allocations: 18.98 kB / 401.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.2611, allocations: 0.5743 MB / 401.8 MB, free: 8.855 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2612, allocations: 0 / 401.8 MB, free: 8.855 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001313/0.2625, allocations: 209.6 kB / 402.1 MB, free: 8.836 MB / 318.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.002137/0.2646, allocations: 1.37 MB / 403.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.2657, allocations: 0.7098 MB / 404.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.2657, allocations: 8.062 kB / 404.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005807/0.2663, allocations: 458.1 kB / 404.6 MB, free: 7.023 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.2674, allocations: 230.3 kB / 404.8 MB, free: 6.906 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00916/0.2765, allocations: 7.992 MB / 412.8 MB, free: 152 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005294/0.2771, allocations: 1.012 MB / 413.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004041/0.2775, allocations: 115.3 kB / 413.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.2779, allocations: 391.3 kB / 414.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2779, allocations: 0 / 414.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.093/1.371, allocations: 19.1 MB / 433.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.99, allocations: 7.734 kB / 433.4 MB, free: 11.82 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches