Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.001341/0.001341, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 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.001587/0.001587, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002083/0.002083, allocations: 56.44 kB / 347.2 MB, free: 9.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2616, allocations: 49.15 MB / 396.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004032/0.2656, allocations: 3.137 MB / 399.5 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.2667, allocations: 0.7791 MB / 400.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.2669, allocations: 6.938 kB / 400.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.267, allocations: 70.88 kB / 400.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.2672, allocations: 128.7 kB / 400.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.2675, allocations: 115.1 kB / 400.6 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004379/0.2679, allocations: 0.5012 MB / 401.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.2681, allocations: 96.41 kB / 401.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002201/0.2684, allocations: 192 kB / 401.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.2686, allocations: 188.4 kB / 401.5 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.439e-05/0.2686, allocations: 39.31 kB / 401.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.987e-05/0.2687, allocations: 40.28 kB / 401.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.837e-05/0.2688, allocations: 93.66 kB / 401.7 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.269, allocations: 183 kB / 401.9 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004867/0.2695, allocations: 0.4951 MB / 402.4 MB, free: 5.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2695, allocations: 0 / 402.4 MB, free: 5.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2695, allocations: 1.25 kB / 402.4 MB, free: 5.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.2695, allocations: 0 / 402.4 MB, free: 5.352 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00097/0.2704, allocations: 0.6514 MB / 403 MB, free: 4.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.2705, allocations: 10.28 kB / 403.1 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.773e-05/0.2705, allocations: 69.97 kB / 403.1 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.8e-05/0.2706, allocations: 48.47 kB / 403.2 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/0.271, allocations: 257.1 kB / 403.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.271, allocations: 29.97 kB / 403.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.642e-05/0.271, allocations: 28.75 kB / 403.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005609/0.2716, allocations: 439.5 kB / 403.9 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2716, allocations: 1.188 kB / 403.9 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.2716, allocations: 10.88 kB / 403.9 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.2716, allocations: 11.7 kB / 403.9 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000513/0.2721, allocations: 268.2 kB / 404.2 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.2738, allocations: 1.287 MB / 405.5 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003803/0.2742, allocations: 198.2 kB / 405.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.2744, allocations: 100.9 kB / 405.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.2744, allocations: 6.406 kB / 405.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.2744, allocations: 37.53 kB / 405.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.2744, allocations: 0 / 405.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001345/0.2758, allocations: 478.3 kB / 406.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.1e-05/0.2758, allocations: 52.97 kB / 406.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002869/0.2761, allocations: 314.5 kB / 406.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.2761, allocations: 27.05 kB / 406.7 MB, free: 2.566 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.551e-05/0.2762, allocations: 211.1 kB / 406.9 MB, free: 2.391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.786e-05/0.2762, allocations: 92.39 kB / 407 MB, free: 2.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.483e-05/0.2763, allocations: 47.53 kB / 407 MB, free: 2.285 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.209e-05/0.2764, allocations: 337.5 kB / 407.3 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.2765, allocations: 87.08 kB / 407.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.2767, allocations: 116.3 kB / 407.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.2771, allocations: 204.2 kB / 407.7 MB, free: 1.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2771, allocations: 0 / 407.7 MB, free: 1.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006156/0.2777, allocations: 346.4 kB / 408.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.2777, allocations: 6.297 kB / 408.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2777, allocations: 1.375 kB / 408.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003773/0.2781, allocations: 123.3 kB / 408.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.2783, allocations: 31.47 kB / 408.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003678/0.2819, allocations: 4.646 MB / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.2822, allocations: 27.97 kB / 412.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.2822, allocations: 7.594 kB / 412.9 MB, free: 13.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001833/0.2824, allocations: 154.5 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.496e-05/0.2824, allocations: 31.25 kB / 413.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.243e-05/0.2825, allocations: 39.48 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2825, allocations: 7.625 kB / 413.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2825, allocations: 0 / 413.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2825, allocations: 1.453 kB / 413.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004304/0.2829, allocations: 307.2 kB / 413.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2829, allocations: 0 / 413.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.283, allocations: 19.86 kB / 413.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003437/0.2834, allocations: 116.9 kB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.2834, allocations: 2.625 kB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004303/0.2877, allocations: 4.647 MB / 418.2 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2877, allocations: 4.188 kB / 418.2 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006658/0.2884, allocations: 403.8 kB / 418.6 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.2885, allocations: 47.2 kB / 418.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.003e-05/0.2886, allocations: 5.812 kB / 418.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.2888, allocations: 25.25 kB / 418.7 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.817e-05/0.2889, allocations: 28.83 kB / 418.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.2889, allocations: 5.156 kB / 418.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002638/0.2892, allocations: 221.8 kB / 419 MB, free: 7.668 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2892, allocations: 1.125 kB / 419 MB, free: 7.668 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006778/0.2899, allocations: 118.5 kB / 419.1 MB, free: 7.641 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009676/0.2908, allocations: 0.9347 MB / 420 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009423/0.2918, allocations: 0.5639 MB / 420.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2918, allocations: 1.281 kB / 420.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005637/0.2923, allocations: 470 kB / 421 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.2927, allocations: 72.52 kB / 421.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004498/0.2972, allocations: 3.125 MB / 424.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.2974, allocations: 193 kB / 424.4 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.2976, allocations: 22.06 kB / 424.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.2977, allocations: 115 kB / 424.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2977, allocations: 0 / 424.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06116/0.3589, allocations: 9.206 MB / 433.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.55, allocations: 11.8 kB / 433.8 MB, free: 12.43 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.91542567173019]