Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001604/0.001604, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002197/0.002197, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2072/0.2072, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 80.16 kB / 480.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3084, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002102/0.3105, allocations: 0.8136 MB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002003/0.3107, allocations: 48.91 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.512e-05/0.3108, allocations: 3.969 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001117/0.3109, allocations: 7.875 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.876e-05/0.311, allocations: 0 / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001091/0.3111, allocations: 15.7 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.3112, allocations: 40.75 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.535e-05/0.3113, allocations: 24.33 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.822e-05/0.3113, allocations: 12.17 kB / 0.5314 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.174e-05/0.3114, allocations: 18.08 kB / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.3114, allocations: 3.219 kB / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.005e-05/0.3114, allocations: 3.156 kB / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.809e-05/0.3114, allocations: 4.875 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.991e-05/0.3115, allocations: 19.95 kB / 0.5315 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.3116, allocations: 39.86 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3116, allocations: 1.094 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3116, allocations: 4 kB / 0.5315 GB, free: 12.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.3116, allocations: 0 / 0.5315 GB, free: 12.63 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004118/0.312, allocations: 356.7 kB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3121, allocations: 9.5 kB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.084e-05/0.3121, allocations: 31.94 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/0.3122, allocations: 7.406 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.3124, allocations: 179.2 kB / 0.5321 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.3124, allocations: 6.422 kB / 0.5321 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.164e-05/0.3124, allocations: 10.66 kB / 0.5321 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.3126, allocations: 53.19 kB / 0.5322 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3126, allocations: 9.078 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.3126, allocations: 0 / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3126, allocations: 1.219 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.045e-05/0.3126, allocations: 11.75 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005331/0.3132, allocations: 290.1 kB / 0.5325 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.811e-05/0.3133, allocations: 24.02 kB / 0.5325 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.125e-05/0.3133, allocations: 11.3 kB / 0.5325 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.3133, allocations: 0 / 0.5325 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.163e-05/0.3134, allocations: 50.88 kB / 0.5325 GB, free: 11.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.3134, allocations: 0 / 0.5325 GB, free: 11.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001713/0.3136, allocations: 50.84 kB / 0.5326 GB, free: 11.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.3136, allocations: 52.59 kB / 0.5326 GB, free: 11.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.3137, allocations: 122.9 kB / 0.5328 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.3138, allocations: 27.27 kB / 0.5328 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.331e-05/0.3138, allocations: 90.55 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.3139, allocations: 8.969 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.3139, allocations: 17.53 kB / 0.5329 GB, free: 11.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.314, allocations: 328 kB / 0.5332 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.848e-05/0.3141, allocations: 3.781 kB / 0.5332 GB, free: 10.83 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.213e-05/0.3141, allocations: 26.41 kB / 0.5332 GB, free: 10.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.284e-05/0.3142, allocations: 34.38 kB / 0.5333 GB, free: 10.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3142, allocations: 3.938 kB / 0.5333 GB, free: 10.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.607e-05/0.3143, allocations: 49.17 kB / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.3143, allocations: 13.92 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3143, allocations: 0 / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.3143, allocations: 1.875 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.458e-05/0.3144, allocations: 1.875 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.3144, allocations: 5.969 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.22e-05/0.3144, allocations: 9.688 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.3144, allocations: 1.938 kB / 0.5334 GB, free: 10.71 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.205e-05/0.3145, allocations: 115.7 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.3145, allocations: 1.781 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.631e-05/0.3146, allocations: 10.08 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3146, allocations: 0 / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.3146, allocations: 0 / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3146, allocations: 5.875 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003014/0.3149, allocations: 300 kB / 0.5338 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3149, allocations: 0 / 0.5338 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.571e-05/0.315, allocations: 6.672 kB / 0.5338 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.315, allocations: 0 / 0.5338 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.315, allocations: 5.312 kB / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.315, allocations: 0 / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.315, allocations: 0 / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.3152, allocations: 157 kB / 0.5339 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.837e-05/0.3152, allocations: 86.55 kB / 0.534 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.3153, allocations: 3.938 kB / 0.534 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.808e-05/0.3153, allocations: 5.578 kB / 0.534 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.3154, allocations: 1.281 kB / 0.534 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.3154, allocations: 1.562 kB / 0.534 GB, free: 9.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.965e-05/0.3154, allocations: 92.42 kB / 0.5341 GB, free: 9.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3154, allocations: 288 / 0.5341 GB, free: 9.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000225/0.3157, allocations: 4.562 kB / 0.5341 GB, free: 9.891 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004582/0.3161, allocations: 0.6783 MB / 0.5348 GB, free: 9.215 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001011/0.3163, allocations: 27.2 kB / 0.5348 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3163, allocations: 0 / 0.5348 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.945e-05/0.3163, allocations: 6.594 kB / 0.5348 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.3166, allocations: 20.11 kB / 0.5348 GB, free: 9.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.3177, allocations: 1.282 MB / 0.5361 GB, free: 7.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.318, allocations: 0.6857 MB / 0.5367 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.295e-05/0.318, allocations: 6.25 kB / 0.5368 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.348e-05/0.3181, allocations: 17.66 kB / 0.5368 GB, free: 7.207 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3181, allocations: 0 / 0.5368 GB, free: 7.207 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02595/0.344, allocations: 1.553 MB / 0.5383 GB, free: 6.344 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.433/7.777, allocations: 8.609 kB / 0.5383 GB, free: 6.34 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.y Variables in the result:const.k,const.y,der(integrator.y),greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,integrator.initType,integrator.k,integrator.reset,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,time