Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002169/0.002174, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.155/2.155, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003984, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1069, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.007126/0.1141, allocations: 2.762 MB / 377.4 MB, free: 12.56 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003351/0.1175, allocations: 0.7921 MB / 378.2 MB, free: 11.76 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006146/0.1182, allocations: 4 kB / 378.2 MB, free: 11.76 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003638/0.1186, allocations: 47.59 kB / 378.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001188/0.1198, allocations: 167.5 kB / 378.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007336/0.1206, allocations: 75.91 kB / 378.5 MB, free: 11.47 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.122, allocations: 351.2 kB / 378.8 MB, free: 11.13 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004844/0.1226, allocations: 110.8 kB / 378.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006484/0.1233, allocations: 155.4 kB / 379.1 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005912/0.1239, allocations: 183.2 kB / 379.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001342/0.124, allocations: 20 kB / 379.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001878/0.1243, allocations: 20 kB / 379.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.1244, allocations: 67.67 kB / 379.4 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002373/0.1247, allocations: 101.5 kB / 379.5 MB, free: 10.47 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008297/0.1255, allocations: 355 kB / 379.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1256, allocations: 0 / 379.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.567e-06/0.1256, allocations: 0 / 379.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.1256, allocations: 0 / 379.8 MB, free: 10.12 MB / 282.7 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.001731/0.1274, allocations: 0.6583 MB / 380.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.1274, allocations: 8.031 kB / 380.5 MB, free: 9.41 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/0.1276, allocations: 74.47 kB / 380.6 MB, free: 9.328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.1278, allocations: 47.44 kB / 380.6 MB, free: 9.281 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005606/0.1284, allocations: 302.2 kB / 380.9 MB, free: 8.945 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.1284, allocations: 32.61 kB / 380.9 MB, free: 8.914 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.312e-05/0.1285, allocations: 28 kB / 381 MB, free: 8.887 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.1296, allocations: 354.8 kB / 381.3 MB, free: 8.523 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.1296, allocations: 0 / 381.3 MB, free: 8.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.354e-05/0.1297, allocations: 16 kB / 381.3 MB, free: 8.508 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.1297, allocations: 8 kB / 381.3 MB, free: 8.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.1308, allocations: 278.4 kB / 381.6 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003819/0.1346, allocations: 1.438 MB / 383 MB, free: 6.688 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.1359, allocations: 222.4 kB / 383.2 MB, free: 6.461 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.334e-05/0.136, allocations: 4 kB / 383.3 MB, free: 6.457 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.136, allocations: 42.55 kB / 383.3 MB, free: 6.406 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.875e-06/0.136, allocations: 4 kB / 383.3 MB, free: 6.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.002683/0.1387, allocations: 0.703 MB / 384 MB, free: 5.629 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.1388, allocations: 67.16 kB / 384.1 MB, free: 5.551 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005146/0.1394, allocations: 304.6 kB / 384.4 MB, free: 5.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.039e-05/0.1394, allocations: 29.7 kB / 384.4 MB, free: 5.215 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.1396, allocations: 262.5 kB / 384.6 MB, free: 4.949 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.1398, allocations: 82.84 kB / 384.7 MB, free: 4.867 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/0.1398, allocations: 4 kB / 384.7 MB, free: 4.863 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.14, allocations: 322.8 kB / 385 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.1403, allocations: 79.95 kB / 385.1 MB, free: 4.461 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.1407, allocations: 128.2 kB / 385.3 MB, free: 4.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003811/0.1411, allocations: 91.86 kB / 385.3 MB, free: 4.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1411, allocations: 4 kB / 385.3 MB, free: 4.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001315/0.1425, allocations: 355.8 kB / 385.7 MB, free: 3.863 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1425, allocations: 4 kB / 385.7 MB, free: 3.859 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1425, allocations: 0 / 385.7 MB, free: 3.859 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006594/0.1432, allocations: 114.5 kB / 385.8 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000323/0.1435, allocations: 35.97 kB / 385.8 MB, free: 3.703 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.298/0.4416, allocations: 4.463 MB / 390.3 MB, free: 19.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004205/0.4421, allocations: 32.27 kB / 390.3 MB, free: 19.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/0.4421, allocations: 8.375 kB / 390.3 MB, free: 19.08 MB / 282.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002405/0.4424, allocations: 157.6 kB / 390.5 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.706e-05/0.4425, allocations: 29.75 kB / 390.5 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.412e-05/0.4426, allocations: 42.16 kB / 390.6 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.4426, allocations: 2.562 kB / 390.6 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4426, allocations: 1.891 kB / 390.6 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.4426, allocations: 1.578 kB / 390.6 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006628/0.4433, allocations: 371.5 kB / 390.9 MB, free: 18.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.4433, allocations: 4.188 kB / 390.9 MB, free: 18.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.4436, allocations: 24.42 kB / 391 MB, free: 18.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006567/0.4443, allocations: 121.1 kB / 391.1 MB, free: 18.75 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/0.4444, allocations: 5.906 kB / 391.1 MB, free: 18.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006278/0.4506, allocations: 4.475 MB / 395.6 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.4507, allocations: 0 / 395.6 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.452, allocations: 418 kB / 396 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000269/0.4523, allocations: 125.9 kB / 396.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.552e-05/0.4524, allocations: 8 kB / 396.1 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005838/0.453, allocations: 23.34 kB / 396.1 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.4532, allocations: 30.84 kB / 396.2 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.106e-05/0.4533, allocations: 13.8 kB / 396.2 MB, free: 14.48 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004879/0.4538, allocations: 215.5 kB / 396.4 MB, free: 14.36 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.4538, allocations: 0 / 396.4 MB, free: 14.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001546/0.4554, allocations: 110.5 kB / 396.5 MB, free: 14.34 MB / 282.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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001889/0.4573, allocations: 0.9502 MB / 397.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.4589, allocations: 0.5798 MB / 398 MB, free: 13.13 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.459, allocations: 0 / 398 MB, free: 13.13 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.4601, allocations: 491.4 kB / 398.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.461, allocations: 58.34 kB / 398.6 MB, free: 12.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006639/0.4676, allocations: 2.535 MB / 401.1 MB, free: 11.01 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.4682, allocations: 0.8025 MB / 401.9 MB, free: 10.31 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000319/0.4686, allocations: 109.9 kB / 402 MB, free: 10.23 MB / 282.7 MB Notification: Performance of SimCode: time 1.192e-06/0.4686, allocations: 0 / 402 MB, free: 10.23 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.026/3.495, allocations: 9.514 MB / 411.5 MB, free: 6.93 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat