Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007879/0.0007879, allocations: 105.5 kB / 18.95 MB, free: 1.184 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000861/0.000861, allocations: 211.6 kB / 22.25 MB, free: 3.574 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.003/1.003, allocations: 230.6 MB / 256 MB, free: 9.586 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ChaoticCircuits 2.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ChaoticCircuits 2.4.0/package.mo): time 0.03305/0.03305, allocations: 9.55 MB / 322 MB, free: 8.469 MB / 250.7 MB " [Timeout remaining time 180] Using package ChaoticCircuits with version 2.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ChaoticCircuits 2.4.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ChaoticCircuits.Test.TestHystereticNIC,fileNamePrefix="ChaoticCircuits_ChaoticCircuits_Test_TestHystereticNIC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ChaoticCircuits.Test.TestHystereticNIC,fileNamePrefix="ChaoticCircuits_ChaoticCircuits_Test_TestHystereticNIC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ChaoticCircuits requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009695/0.0009695, allocations: 67.91 kB / 448.6 MB, free: 37.73 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07212/0.07309, allocations: 55.78 MB / 0.4926 GB, free: 13.85 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ChaoticCircuits.Test.TestHystereticNIC): time 0.002685/0.07577, allocations: 2.052 MB / 0.4946 GB, free: 11.78 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007659/0.07654, allocations: 0.6037 MB / 0.4952 GB, free: 11.17 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.358e-05/0.07659, allocations: 0 / 0.4952 GB, free: 11.17 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.0768, allocations: 51.91 kB / 0.4952 GB, free: 11.12 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 5.323e-05/0.07685, allocations: 47.66 kB / 0.4952 GB, free: 11.07 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001516/0.077, allocations: 47.86 kB / 0.4953 GB, free: 11.03 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.07718, allocations: 187.4 kB / 0.4955 GB, free: 10.84 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.07728, allocations: 25.73 kB / 0.4955 GB, free: 10.82 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.933e-05/0.07738, allocations: 75.72 kB / 0.4956 GB, free: 10.75 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.476e-05/0.07748, allocations: 75.66 kB / 0.4956 GB, free: 10.67 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.0775, allocations: 20 kB / 0.4957 GB, free: 10.65 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.02e-05/0.07752, allocations: 16 kB / 0.4957 GB, free: 10.64 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.509e-05/0.07756, allocations: 43.78 kB / 0.4957 GB, free: 10.59 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 6.032e-05/0.07762, allocations: 63.72 kB / 0.4958 GB, free: 10.53 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.07779, allocations: 191.3 kB / 0.496 GB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.0778, allocations: 4 kB / 0.496 GB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.0778, allocations: 0 / 0.496 GB, free: 10.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.0778, allocations: 0 / 0.496 GB, free: 10.34 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006244/0.07843, allocations: 431.2 kB / 0.4964 GB, free: 9.883 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.07847, allocations: 8.031 kB / 0.4964 GB, free: 9.875 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.372e-05/0.0785, allocations: 42.73 kB / 0.4964 GB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/0.07853, allocations: 16.84 kB / 0.4964 GB, free: 9.809 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.07866, allocations: 167 kB / 0.4966 GB, free: 9.621 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.07867, allocations: 4.375 kB / 0.4966 GB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.07869, allocations: 11.94 kB / 0.4966 GB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.07892, allocations: 135.7 kB / 0.4967 GB, free: 9.469 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.07893, allocations: 3.938 kB / 0.4967 GB, free: 9.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.07894, allocations: 4 kB / 0.4968 GB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.07895, allocations: 0 / 0.4968 GB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.07919, allocations: 135.8 kB / 0.4969 GB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006065/0.07979, allocations: 438.6 kB / 0.4973 GB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.08005, allocations: 122.5 kB / 0.4974 GB, free: 8.723 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.08016, allocations: 60.92 kB / 0.4975 GB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.08018, allocations: 4 kB / 0.4975 GB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.08041, allocations: 115.3 kB / 0.4976 GB, free: 8.531 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.08041, allocations: 0 / 0.4976 GB, free: 8.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004815/0.08089, allocations: 213.4 kB / 0.4978 GB, free: 8.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.08092, allocations: 55.41 kB / 0.4978 GB, free: 8.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.08106, allocations: 186.9 kB / 0.498 GB, free: 8.059 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.08108, allocations: 33.7 kB / 0.4981 GB, free: 8.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.479e-05/0.08114, allocations: 124.2 kB / 0.4982 GB, free: 7.891 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.08116, allocations: 19.83 kB / 0.4982 GB, free: 7.871 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.0812, allocations: 25.72 kB / 0.4982 GB, free: 7.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.68e-05/0.08129, allocations: 326.8 kB / 0.4985 GB, free: 7.512 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.08145, allocations: 89.89 kB / 0.4986 GB, free: 7.418 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.08164, allocations: 112.2 kB / 0.4987 GB, free: 7.293 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.08199, allocations: 164.1 kB / 0.4989 GB, free: 7.117 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.08199, allocations: 0 / 0.4989 GB, free: 7.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004698/0.08246, allocations: 248.8 kB / 0.4991 GB, free: 6.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.08249, allocations: 29.7 kB / 0.4991 GB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.0825, allocations: 4.062 kB / 0.4991 GB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.08252, allocations: 8.078 kB / 0.4992 GB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.08263, allocations: 23.91 kB / 0.4992 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.08264, allocations: 4 kB / 0.4992 GB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.458e-05/0.08274, allocations: 27.92 kB / 0.4992 GB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.08275, allocations: 4 kB / 0.4992 GB, free: 6.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 (hystereticNIC.rh,$PRE.hystereticNIC.rh,source.signalSource.count,$PRE.source.signalSource.count,source.signalSource.T_start,$PRE.source.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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 9.009e-05/0.08284, allocations: 122.9 kB / 0.4993 GB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.79e-05/0.08285, allocations: 19.84 kB / 0.4993 GB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.839e-05/0.08288, allocations: 17.39 kB / 0.4994 GB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.08288, allocations: 0 / 0.4994 GB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.08289, allocations: 3.938 kB / 0.4994 GB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.08289, allocations: 4 kB / 0.4994 GB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.08302, allocations: 180.7 kB / 0.4995 GB, free: 6.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.08302, allocations: 3.938 kB / 0.4995 GB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.699e-05/0.08311, allocations: 19.97 kB / 0.4996 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.08311, allocations: 0 / 0.4996 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.08312, allocations: 0 / 0.4996 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.08312, allocations: 8 kB / 0.4996 GB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.08312, allocations: 0 / 0.4996 GB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004118/0.08354, allocations: 177 kB / 0.4997 GB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.394e-05/0.08357, allocations: 27.78 kB / 0.4998 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.871e-05/0.0836, allocations: 7.938 kB / 0.4998 GB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.08371, allocations: 19.97 kB / 0.4998 GB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.253e-05/0.08379, allocations: 23.97 kB / 0.4998 GB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.0838, allocations: 3.984 kB / 0.4998 GB, free: 6.047 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001293/0.08393, allocations: 147.2 kB / 0.5 GB, free: 5.902 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.08393, allocations: 0 / 0.5 GB, free: 5.902 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002654/0.08419, allocations: 31.95 kB / 0.5 GB, free: 5.871 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,source.signalSource.T_start,source.signalSource.count,hystereticNIC.rh) * Number of discrete states: 2 (hystereticNIC.rh,source.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008304/0.08502, allocations: 0.7179 MB / 0.5007 GB, free: 5.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004244/0.08545, allocations: 220.9 kB / 0.5009 GB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.08545, allocations: 0 / 0.5009 GB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.08557, allocations: 59.94 kB / 0.501 GB, free: 4.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.08579, allocations: 28.11 kB / 0.501 GB, free: 4.805 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.08849, allocations: 2.115 MB / 0.5031 GB, free: 2.559 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.721e-05/0.08857, allocations: 93.61 kB / 0.5031 GB, free: 2.449 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.392e-05/0.08864, allocations: 8.656 kB / 0.5032 GB, free: 2.441 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.08874, allocations: 47.39 kB / 0.5032 GB, free: 2.395 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.08875, allocations: 0 / 0.5032 GB, free: 2.395 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08144/0.1702, allocations: 4.425 MB / 0.5075 GB, free: 14.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.958/7.128, allocations: 9.344 kB / 0.5075 GB, free: 14.11 MB / 378.7 MB " [Timeout remaining time 653] (rm -f ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC.pipe ; mkfifo ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC.pipe ; head -c 1048576 < ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC.pipe >> ../files/ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ChaoticCircuits_ChaoticCircuits_Test_TestHystereticNIC_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ChaoticCircuits_ChaoticCircuits_Test_TestHystereticNIC.fmu) > ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC.pipe 2>&1) [Timeout 52.5] (rm -f ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC_fmpy.pipe ; mkfifo ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC_fmpy.pipe ; head -c 1048576 < ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ../ChaoticCircuits_ChaoticCircuits_Test_TestHystereticNIC.fmu) > ChaoticCircuits_ChaoticCircuits.Test.TestHystereticNIC_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.538672772236168]