Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001368/0.001368, allocations: 112.3 kB / 20.48 MB, free: 1.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001477/0.001477, allocations: 214.6 kB / 23.78 MB, free: 4.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 230.5 MB / 257.5 MB, free: 7.918 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2236/0.2236, allocations: 46.95 MB / 360.9 MB, free: 3.906 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002632/0.002632, allocations: 87.86 kB / 0.4962 GB, free: 7.508 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3382, allocations: 66.08 MB / 0.5608 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003431/0.3416, allocations: 1.861 MB / 0.5626 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.3429, allocations: 0.5347 MB / 0.5631 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.343, allocations: 11.94 kB / 0.5631 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.3431, allocations: 23.8 kB / 0.5631 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.3432, allocations: 39.62 kB / 0.5632 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.3435, allocations: 47.89 kB / 0.5632 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002093/0.3437, allocations: 151.3 kB / 0.5634 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.3439, allocations: 43.66 kB / 0.5634 GB, free: 1.285 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.3441, allocations: 71.7 kB / 0.5635 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.3442, allocations: 55.7 kB / 0.5635 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.3442, allocations: 16 kB / 0.5635 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.713e-05/0.3443, allocations: 16 kB / 0.5636 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.105e-05/0.3443, allocations: 23.92 kB / 0.5636 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.3444, allocations: 59.73 kB / 0.5636 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.3446, allocations: 159.3 kB / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3446, allocations: 0 / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3446, allocations: 0 / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.3446, allocations: 0 / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006265/0.3453, allocations: 361.7 kB / 0.5641 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3453, allocations: 8.031 kB / 0.5641 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.417e-05/0.3454, allocations: 50.73 kB / 0.5642 GB, free: 452 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.3455, allocations: 36.81 kB / 0.5642 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.3458, allocations: 150.3 kB / 0.5644 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.3458, allocations: 8.375 kB / 0.5644 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.3459, allocations: 20.33 kB / 0.5644 GB, free: 212 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000275/0.3461, allocations: 121.6 kB / 0.5645 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.3462, allocations: 0 / 0.5645 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.3462, allocations: 8 kB / 0.5645 GB, free: 76 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3462, allocations: 4 kB / 0.5645 GB, free: 72 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002903/0.3465, allocations: 87.92 kB / 0.5646 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007544/0.3472, allocations: 407.5 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00024/0.3475, allocations: 110.4 kB / 0.5651 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.3476, allocations: 60.77 kB / 0.5652 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.3476, allocations: 0 / 0.5652 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.3476, allocations: 34.5 kB / 0.5652 GB, free: 15.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 3.055e-06/0.3476, allocations: 4 kB / 0.5652 GB, free: 15.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001468/0.3491, allocations: 0.6584 MB / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.3491, allocations: 55.41 kB / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.3493, allocations: 141.6 kB / 0.566 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.3493, allocations: 29.7 kB / 0.5661 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.406e-05/0.3494, allocations: 116.5 kB / 0.5662 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.502e-05/0.3494, allocations: 71.39 kB / 0.5662 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.2e-05/0.3495, allocations: 37.7 kB / 0.5663 GB, free: 14.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3496, allocations: 322.8 kB / 0.5666 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.3497, allocations: 39.98 kB / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.3499, allocations: 83.28 kB / 0.5667 GB, free: 13.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.3501, allocations: 127.4 kB / 0.5668 GB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3501, allocations: 3.938 kB / 0.5668 GB, free: 13.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004443/0.3506, allocations: 214.3 kB / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.3506, allocations: 11.92 kB / 0.567 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.3506, allocations: 3.938 kB / 0.567 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001638/0.3507, allocations: 40.84 kB / 0.5671 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.3509, allocations: 31.97 kB / 0.5671 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.3526, allocations: 1.629 MB / 0.5687 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.957e-05/0.3527, allocations: 4.031 kB / 0.5687 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.3527, allocations: 8 kB / 0.5687 GB, free: 11.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.3528, allocations: 129.8 kB / 0.5688 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.3529, allocations: 19.91 kB / 0.5689 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.107e-05/0.3529, allocations: 13.12 kB / 0.5689 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.3529, allocations: 12.17 kB / 0.5689 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3529, allocations: 0 / 0.5689 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.3529, allocations: 4 kB / 0.5689 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000786/0.3537, allocations: 0.5049 MB / 0.5694 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3537, allocations: 0 / 0.5694 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.3539, allocations: 35.97 kB / 0.5694 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.354, allocations: 36.78 kB / 0.5694 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.354, allocations: 0 / 0.5694 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.3553, allocations: 1.37 MB / 0.5708 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3553, allocations: 3.938 kB / 0.5708 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006287/0.3559, allocations: 343.6 kB / 0.5711 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.874e-05/0.3559, allocations: 19.88 kB / 0.5711 GB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.3559, allocations: 4 kB / 0.5711 GB, free: 8.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.3561, allocations: 11.92 kB / 0.5712 GB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.703e-05/0.3561, allocations: 15.92 kB / 0.5712 GB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.3561, allocations: 20.05 kB / 0.5712 GB, free: 8.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.632e-05/0.3562, allocations: 103.3 kB / 0.5713 GB, free: 8.629 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3562, allocations: 0 / 0.5713 GB, free: 8.629 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.3566, allocations: 40 kB / 0.5713 GB, free: 8.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008616/0.3574, allocations: 0.8804 MB / 0.5722 GB, free: 7.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005347/0.358, allocations: 250.9 kB / 0.5724 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.358, allocations: 0 / 0.5724 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.3582, allocations: 190.5 kB / 0.5726 GB, free: 7.223 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.3586, allocations: 25.33 kB / 0.5726 GB, free: 7.203 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.3614, allocations: 2.068 MB / 0.5746 GB, free: 5.027 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/0.3615, allocations: 107.8 kB / 0.5748 GB, free: 4.895 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.324e-05/0.3616, allocations: 13.48 kB / 0.5748 GB, free: 4.879 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.781e-05/0.3616, allocations: 40.48 kB / 0.5748 GB, free: 4.84 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3616, allocations: 4 kB / 0.5748 GB, free: 4.836 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05684/0.4185, allocations: 4.134 MB / 0.5788 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.77, allocations: 4.062 kB / 0.5788 GB, free: 0.8203 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.271160695003346]