Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008186/0.0008186, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009497/0.0009497, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.157/1.157, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001922/0.0001922, allocations: 4 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07646/0.07666, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004487/0.08118, allocations: 4.97 MB / 364.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.08362, allocations: 2.079 MB / 366.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002962/0.08393, allocations: 35.81 kB / 366.4 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.08425, allocations: 166.8 kB / 366.6 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002516/0.08451, allocations: 138.8 kB / 366.7 MB, free: 5.781 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005785/0.08509, allocations: 343.4 kB / 367.1 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007268/0.08583, allocations: 0.966 MB / 368 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006229/0.08646, allocations: 0.5397 MB / 368.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002701/0.08674, allocations: 242.9 kB / 368.8 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.08699, allocations: 278.4 kB / 369.1 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.914e-05/0.08705, allocations: 32 kB / 369.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.08721, allocations: 91.92 kB / 369.2 MB, free: 3.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.08732, allocations: 127.4 kB / 369.3 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.08758, allocations: 379.6 kB / 369.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007605/0.08834, allocations: 1.067 MB / 370.8 MB, free: 1.711 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.08836, allocations: 4 kB / 370.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08836, allocations: 0 / 370.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.08838, allocations: 0 / 370.8 MB, free: 1.707 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001012/0.08939, allocations: 0.8892 MB / 371.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.08944, allocations: 8.031 kB / 371.7 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001253/0.08957, allocations: 131.5 kB / 371.8 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/0.08978, allocations: 99.89 kB / 371.9 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1384/0.2281, allocations: 0.4946 MB / 372.4 MB, free: 18.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.99e-05/0.2282, allocations: 64.28 kB / 372.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001829/0.2284, allocations: 87.28 kB / 372.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.2298, allocations: 0.8065 MB / 373.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.009e-05/0.2299, allocations: 11.33 kB / 373.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.142e-05/0.2299, allocations: 33.06 kB / 373.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.23, allocations: 24.44 kB / 373.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000901/0.2309, allocations: 0.4983 MB / 373.9 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002862/0.2337, allocations: 2.905 MB / 376.8 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004832/0.2342, allocations: 225.8 kB / 377 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.2344, allocations: 110.6 kB / 377.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001479/0.2346, allocations: 246.7 kB / 377.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.475e-05/0.2346, allocations: 40.25 kB / 377.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.154e-06/0.2346, allocations: 1.562 kB / 377.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001878/0.2365, allocations: 1.263 MB / 378.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.002e-05/0.2365, allocations: 62.52 kB / 378.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.2368, allocations: 312 kB / 379.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.2368, allocations: 31.11 kB / 379.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.2369, allocations: 393.3 kB / 379.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.332e-05/0.237, allocations: 133.6 kB / 379.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.2371, allocations: 49.33 kB / 379.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.867e-05/0.2371, allocations: 349 kB / 380 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.2373, allocations: 110.8 kB / 380.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.2375, allocations: 251.3 kB / 380.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004244/0.238, allocations: 397.2 kB / 380.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.238, allocations: 1.219 kB / 380.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005991/0.2386, allocations: 466.7 kB / 381.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2386, allocations: 6.984 kB / 381.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.2386, allocations: 4.031 kB / 381.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000148/0.2388, allocations: 35.42 kB / 381.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.2391, allocations: 116.7 kB / 381.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002181/0.2393, allocations: 0.565 MB / 381.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001583/0.2395, allocations: 13.3 kB / 381.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.2395, allocations: 22.08 kB / 381.9 MB, free: 13.33 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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.0002193/0.2397, allocations: 228.1 kB / 382.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.663e-05/0.2398, allocations: 33.44 kB / 382.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005505/0.2404, allocations: 329.8 kB / 382.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2404, allocations: 4.094 kB / 382.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2404, allocations: 0.7031 kB / 382.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.2404, allocations: 5.719 kB / 382.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.2415, allocations: 1.035 MB / 383.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.2415, allocations: 0 / 383.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003118/0.2418, allocations: 89.09 kB / 383.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001004/0.242, allocations: 30.92 kB / 383.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.242, allocations: 8.125 kB / 383.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001771/0.2422, allocations: 0.5473 MB / 384.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.2422, allocations: 5.188 kB / 384.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000606/0.2428, allocations: 0.5523 MB / 384.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.346e-05/0.2428, allocations: 108.5 kB / 384.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.2429, allocations: 12.14 kB / 384.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.243, allocations: 12.95 kB / 384.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.2431, allocations: 23.17 kB / 385 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.2431, allocations: 11.05 kB / 385 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001609/0.2433, allocations: 215 kB / 385.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2433, allocations: 0 / 385.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005403/0.2438, allocations: 128.4 kB / 385.3 MB, free: 11.15 MB / 302.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.phi,inertia2b.w,torqueToAngle2b.phi,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.0007937/0.2446, allocations: 1.105 MB / 386.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004874/0.2451, allocations: 316.4 kB / 386.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2451, allocations: 1.25 kB / 386.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.2454, allocations: 138.3 kB / 386.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.2459, allocations: 70.77 kB / 386.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004555/0.2504, allocations: 4.92 MB / 391.8 MB, free: 6.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/0.2508, allocations: 0.9214 MB / 392.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.251, allocations: 44.41 kB / 392.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.2512, allocations: 244.1 kB / 393 MB, free: 5.695 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2512, allocations: 0 / 393 MB, free: 5.695 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.449/0.7002, allocations: 7.688 MB / 400.7 MB, free: 2.742 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.7004, allocations: 243.9 kB / 401 MB, free: 2.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/2.494, allocations: 0 / 401 MB, free: 2.48 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches