Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001283/0.001283, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 60.14 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2178, allocations: 50.54 MB / 408.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01092/0.2287, allocations: 10.23 MB / 419 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005768/0.2345, allocations: 3.309 MB / 422.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001339/0.2359, allocations: 59.75 kB / 422.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001721/0.2377, allocations: 0.7453 MB / 423.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002502/0.2402, allocations: 0.8738 MB / 424 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000991/0.2412, allocations: 423.4 kB / 424.4 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003292/0.2445, allocations: 2.98 MB / 427.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002743/0.2473, allocations: 2.484 MB / 429.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001907/0.2492, allocations: 1.363 MB / 431.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002287/0.2515, allocations: 1.701 MB / 432.9 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006411/0.2522, allocations: 352 kB / 433.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001/0.2532, allocations: 467.8 kB / 433.7 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009797/0.2542, allocations: 1.017 MB / 434.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002002/0.2562, allocations: 1.614 MB / 436.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004937/0.2612, allocations: 4.714 MB / 441.1 MB, free: 1.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.2612, allocations: 3.938 kB / 441.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2612, allocations: 0 / 441.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001056/0.2613, allocations: 0 / 441.1 MB, free: 1.18 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007077/0.2684, allocations: 3.359 MB / 444.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2685, allocations: 12.03 kB / 444.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005309/0.269, allocations: 333.6 kB / 444.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001206/0.2702, allocations: 374.9 kB / 445.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003495/0.2737, allocations: 1.789 MB / 446.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.2739, allocations: 188.6 kB / 447.1 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004803/0.2744, allocations: 232 kB / 447.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005714/0.2801, allocations: 3.137 MB / 450.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.938e-05/0.2802, allocations: 3.953 kB / 450.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002681/0.2805, allocations: 104 kB / 450.6 MB, free: 7.445 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.2806, allocations: 108.6 kB / 450.7 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004997/0.2856, allocations: 2.692 MB / 453.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01662/0.3023, allocations: 9.641 MB / 463 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002858/0.3052, allocations: 2.173 MB / 465.2 MB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001961/0.3072, allocations: 1.105 MB / 466.3 MB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000297/0.3075, allocations: 211.2 kB / 466.5 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.3076, allocations: 43.56 kB / 466.5 MB, free: 6.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.855e-06/0.3076, allocations: 0 / 466.5 MB, free: 6.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01469/0.3223, allocations: 6.886 MB / 473.4 MB, free: 15.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.3224, allocations: 68.72 kB / 473.5 MB, free: 15.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002653/0.325, allocations: 1.755 MB / 475.3 MB, free: 14.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002145/0.3253, allocations: 49.7 kB / 475.3 MB, free: 14.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008508/0.3261, allocations: 1.197 MB / 476.5 MB, free: 12.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004603/0.3266, allocations: 472 kB / 477 MB, free: 12.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004575/0.3271, allocations: 283.5 kB / 477.2 MB, free: 12.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.3272, allocations: 309.1 kB / 477.5 MB, free: 11.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.3285, allocations: 0.7964 MB / 478.3 MB, free: 10.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.33, allocations: 1.209 MB / 479.5 MB, free: 9.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002889/0.3329, allocations: 2.098 MB / 481.6 MB, free: 7.305 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.3329, allocations: 4 kB / 481.6 MB, free: 7.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00458/0.3375, allocations: 2.679 MB / 484.3 MB, free: 4.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.3375, allocations: 8 kB / 484.3 MB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.3376, allocations: 12 kB / 484.3 MB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009858/0.3386, allocations: 423.5 kB / 484.8 MB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.34, allocations: 363.4 kB / 485.1 MB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006831/0.3469, allocations: 7.073 MB / 492.2 MB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.3484, allocations: 107.9 kB / 492.3 MB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.3485, allocations: 63.98 kB / 492.4 MB, free: 12.13 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001351/0.3499, allocations: 0.8055 MB / 493.2 MB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003807/0.3503, allocations: 190.8 kB / 493.3 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003986/0.3543, allocations: 2.391 MB / 495.7 MB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.3543, allocations: 12 kB / 495.7 MB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.3543, allocations: 4 kB / 495.8 MB, free: 8.676 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.3543, allocations: 7.969 kB / 495.8 MB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008873/0.3632, allocations: 5.101 MB / 0.4891 GB, free: 3.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.3633, allocations: 8.062 kB / 0.4891 GB, free: 3.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.3643, allocations: 235.6 kB / 0.4894 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001169/0.3655, allocations: 451.2 kB / 0.4898 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.3657, allocations: 35.98 kB / 0.4898 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008151/0.3738, allocations: 8.643 MB / 0.4983 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.3739, allocations: 7.938 kB / 0.4983 GB, free: 9.488 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00564/0.3795, allocations: 3.538 MB / 0.5017 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/0.3806, allocations: 443.7 kB / 0.5021 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003266/0.381, allocations: 32 kB / 0.5022 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.382, allocations: 91.83 kB / 0.5023 GB, free: 5.289 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002991/0.3823, allocations: 116.7 kB / 0.5024 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-05/0.3824, allocations: 39.98 kB / 0.5024 GB, free: 5.137 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00185/0.3843, allocations: 1.21 MB / 0.5036 GB, free: 3.934 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3843, allocations: 0 / 0.5036 GB, free: 3.934 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001875/0.3862, allocations: 0.5077 MB / 0.5041 GB, free: 3.426 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.006187/0.3924, allocations: 4.166 MB / 0.5082 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004212/0.3966, allocations: 2.473 MB / 0.5106 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.3967, allocations: 0 / 0.5106 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002745/0.3994, allocations: 1.614 MB / 0.5121 GB, free: 10.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/0.402, allocations: 484.7 kB / 0.5126 GB, free: 10.49 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03228/0.4343, allocations: 19.54 MB / 0.5317 GB, free: 6.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0018/0.4361, allocations: 2.009 MB / 0.5337 GB, free: 4.203 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001314/0.4375, allocations: 447.5 kB / 0.5341 GB, free: 3.762 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/0.4387, allocations: 0.9249 MB / 0.535 GB, free: 2.836 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4388, allocations: 0 / 0.535 GB, free: 2.836 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.253/0.6918, allocations: 48.05 MB / 0.5819 GB, free: 92.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.32/26.02, allocations: 25.06 kB / 0.5819 GB, free: 92.27 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches