Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 110.1 kB / 17.86 MB, free: 5.504 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.001863/0.001863, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.037/2.037, allocations: 222.9 MB / 242.5 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3622/0.3622, allocations: 44.16 MB / 336.8 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002446/0.002446, allocations: 64.88 kB / 408.3 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1694, allocations: 60.84 MB / 469.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.01248/0.1819, allocations: 5.72 MB / 474.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007098/0.1891, allocations: 2.247 MB / 477.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001574/0.1907, allocations: 39.75 kB / 477.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.192, allocations: 182.6 kB / 477.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.1933, allocations: 154.8 kB / 477.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002173/0.1955, allocations: 395.4 kB / 477.9 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002215/0.1978, allocations: 1.04 MB / 478.9 MB, free: 5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00162/0.1995, allocations: 0.5634 MB / 479.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008678/0.2004, allocations: 314.7 kB / 479.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008345/0.2012, allocations: 362.1 kB / 480.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002419/0.2015, allocations: 59.94 kB / 480.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000496/0.202, allocations: 111.9 kB / 480.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003117/0.2024, allocations: 167.3 kB / 480.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007372/0.2031, allocations: 437.5 kB / 480.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001646/0.2048, allocations: 0.9511 MB / 481.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.2048, allocations: 0 / 481.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.2048, allocations: 0 / 481.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.635e-05/0.2049, allocations: 4 kB / 481.9 MB, free: 2.035 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003248/0.2082, allocations: 1.123 MB / 483 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.2083, allocations: 12.03 kB / 483 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003517/0.2086, allocations: 99.72 kB / 483.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.2102, allocations: 0.5709 MB / 483.7 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.939e-05/0.2103, allocations: 66 kB / 483.8 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002854/0.2106, allocations: 99.95 kB / 483.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002754/0.2134, allocations: 0.8813 MB / 484.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.527e-05/0.2135, allocations: 7.906 kB / 484.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.2136, allocations: 47.94 kB / 484.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.63e-05/0.2137, allocations: 20 kB / 484.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002091/0.2158, allocations: 0.5191 MB / 485.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006864/0.2227, allocations: 3.646 MB / 489 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000939/0.2237, allocations: 226.6 kB / 489.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.2241, allocations: 100.8 kB / 489.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004573/0.2246, allocations: 251.3 kB / 489.5 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.2246, allocations: 35.06 kB / 489.6 MB, free: 9.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 4.949e-06/0.2246, allocations: 4 kB / 489.6 MB, free: 9.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.004514/0.2292, allocations: 1.292 MB / 490.9 MB, free: 8.566 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.2293, allocations: 59.34 kB / 490.9 MB, free: 8.496 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007866/0.2301, allocations: 401.8 kB / 491.3 MB, free: 8.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.2301, allocations: 29.7 kB / 491.3 MB, free: 8.062 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004769/0.2306, allocations: 466.1 kB / 491.8 MB, free: 7.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.2308, allocations: 142 kB / 491.9 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/0.2311, allocations: 98.17 kB / 492 MB, free: 7.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000248/0.2314, allocations: 370.7 kB / 492.4 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004201/0.2318, allocations: 109.1 kB / 492.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006123/0.2325, allocations: 306.2 kB / 492.8 MB, free: 6.492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.2337, allocations: 468.7 kB / 493.3 MB, free: 5.949 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.2337, allocations: 0 / 493.3 MB, free: 5.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001455/0.2352, allocations: 0.5009 MB / 493.8 MB, free: 5.438 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.2352, allocations: 8 kB / 493.8 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.2352, allocations: 8.766 kB / 493.8 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003337/0.2356, allocations: 44.84 kB / 493.8 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007536/0.2363, allocations: 127.8 kB / 493.9 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006766/0.237, allocations: 0.56 MB / 494.5 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.2376, allocations: 20 kB / 494.5 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.501e-05/0.2377, allocations: 24 kB / 494.5 MB, free: 4.621 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006239/0.2383, allocations: 229.6 kB / 494.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/0.2385, allocations: 55.44 kB / 494.8 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.2397, allocations: 327.2 kB / 495.1 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.2398, allocations: 4.047 kB / 495.2 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.575e-05/0.2398, allocations: 7.969 kB / 495.2 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.2398, allocations: 0 / 495.2 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/0.2427, allocations: 1.042 MB / 496.2 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.2427, allocations: 8 kB / 496.2 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006911/0.2434, allocations: 79.89 kB / 496.3 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002582/0.2437, allocations: 40.94 kB / 496.3 MB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.2438, allocations: 12 kB / 496.3 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000556/0.2443, allocations: 0.5522 MB / 496.9 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.2444, allocations: 0 / 496.9 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.2456, allocations: 0.5669 MB / 497.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.2459, allocations: 112.5 kB / 497.6 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.246, allocations: 11.98 kB / 497.6 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003401/0.2463, allocations: 8 kB / 497.6 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.2465, allocations: 31.91 kB / 497.6 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.823e-05/0.2465, allocations: 12 kB / 497.6 MB, free: 1.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005996/0.2472, allocations: 275.1 kB / 497.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2472, allocations: 0 / 497.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001143/0.2483, allocations: 124 kB / 498 MB, free: 0.9727 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002661/0.2486, allocations: 115.7 kB / 498.1 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.2498, allocations: 329.2 kB / 498.5 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.2499, allocations: 0 / 498.5 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005417/0.2504, allocations: 145.5 kB / 498.6 MB, free: 400 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.2515, allocations: 76.72 kB / 498.7 MB, free: 324 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005194/0.2567, allocations: 2.044 MB / 0.489 GB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009829/0.2577, allocations: 0.9561 MB / 0.4899 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.258, allocations: 51.42 kB / 0.49 GB, free: 13.18 MB / 382.1 MB Notification: Performance of SimCode: time 9.81e-07/0.258, allocations: 0 / 0.49 GB, free: 13.18 MB / 382.1 MB Notification: Performance of Templates: time 0.02686/0.2849, allocations: 11.13 MB / 0.5008 GB, free: 2.059 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches